Quantcast
Channel: Silverlight 5 forum
Viewing all articles
Browse latest Browse all 1083

Ignore Changes Tracking for a DataService Lightswitch Silverlight

$
0
0

Is there something which will tell silverlight or the DataService to not track changes on that object?

In trying to reduce the amount data user needs to download for a DataGrid, I have stumbled on that when I change the list of data returned from the a dataservice, it generates some "this is modified" data list.

Data going into a DataGrid.

Each row some 150 fields for text value, and 150 for the color value to be applied to the Boarder property for each cell.

So with 1000+ rows, that loads of data being downloaded for the Color value, 7bytes per cell, where there are 150+rows of cells.

So I thought, I will submit null, then on client side, populate that color field.

And lovly silverlight registers all these changes, which is adding some 30 sec processing time to track all these changes.

It takes less then 1 sec to actulle loop through the data to populate the color.

using ...Details.DiscardChanges does not help. this drops the values i have added.

Is there something which will tell silverlight or the DataService to not track changes on that object?

The user will not

Alternatively, I had tried using DataTrigger in the datatemplate that is used (not straight xmal file, instead is created in c# code, converting lines of strings into xmal builder) but no simple DataTrigger in Silverlight.

Thanks


Viewing all articles
Browse latest Browse all 1083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>