Using the latest RadGrid, I've noticed if I have items in a grid (say 4) that cause a vertical scrollbar, I can scroll the grid to the bottom then I initiate an action that will cause that grid to 'reload' new items -- say just one or two. If I don't 'scroll' to the top before I initiate the action, once the new items are loaded, the grid does not show them (just an empty grid) or will show just one (if 2 items were loaded) yet I can look @ the grid in debug mode and see it has the 1 or 2 new records.
If I load the previous items, scroll the grid back to the top (using the thumb or up/down arrows) and then initiate the action that loads the 1 or 2, the grid will load the items correctly and then show them. I do use 'UpdateLayout()' after I've release the items (null), then added the items back:
Is there anything I can do to force the grid to 'reset' the scroll position before or after loading the items?
(grid initial options below)
Thanks!
-Don
If I load the previous items, scroll the grid back to the top (using the thumb or up/down arrows) and then initiate the action that loads the 1 or 2, the grid will load the items correctly and then show them. I do use 'UpdateLayout()' after I've release the items (null), then added the items back:
this.RadGridQNoteDefects.ItemsSource = null;
this.RadGridQNoteDefects.ItemsSource = _ncds;
// in order for grid events to occur during loading, you need to
// call this first. This will cause the 'DataLoaded' event to occur...
this.RadGridQNoteDefects.UpdateLayout();
Is there anything I can do to force the grid to 'reset' the scroll position before or after loading the items?
(grid initial options below)
<telerikGridView:RadGridView x:Name="RadGridQNoteDefects" IsReadOnly="True" ShowGroupPanel="False" RowIndicatorVisibility="Collapsed" AutoGenerateColumns="False" ColumnsWidthMode="Fill" CanUserFreezeColumns="False" DataLoadMode="Synchronous" >
Basically, it looks as if the grid is saving the 'last' scroll position in between data loads...
Thanks!
-Don