This question is locked. New answers and comments are not allowed.
I'm using the code from 2011 Q3 SP1 for persisting the RadGridView.
I want the persisting to be automatic, load when the user enters the page and save changes when leaving.
There seems to be a problem with timing. I've been switching between the navigation events, page loaded event and grid loaded event.
Now I've ended up with calling provider.LoadFromStorage() on the grid_loaded event and provider.SaveToStorage() on the OnNavigatingFrom event.
This seems to work most of the time but sometimes not. If I switch between two pages (with one being persisted) it sometimes works but sometimes i get an exception, caused by the proxy.DisplayOrder being -1 in the following line:
Is it a problem with where I'm putting the code to load and save changes?
Has this been fixed in the 2012 Q1 demo?
I tried changing it to check if the Displayorder is >= 0 before the line above but then i get some other similar error.
I want the persisting to be automatic, load when the user enters the page and save changes when leaving.
There seems to be a problem with timing. I've been switching between the navigation events, page loaded event and grid loaded event.
Now I've ended up with calling provider.LoadFromStorage() on the grid_loaded event and provider.SaveToStorage() on the OnNavigatingFrom event.
This seems to work most of the time but sometimes not. If I switch between two pages (with one being persisted) it sometimes works but sometimes i get an exception, caused by the proxy.DisplayOrder being -1 in the following line:
As I'm looping through the columns I should get 0,1,2,3,.... but sometimes it's -1,-1,-1,-1,....column.DisplayIndex = proxy.DisplayOrder;
Is it a problem with where I'm putting the code to load and save changes?
Has this been fixed in the 2012 Q1 demo?
I tried changing it to check if the Displayorder is >= 0 before the line above but then i get some other similar error.