This is a migrated thread and some comments may be shown as answers.

Lose 'GridViewSelectColumn' selection after gridview refreshing

0 Answers 19 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Yel
Top achievements
Rank 1
Yel asked on 13 Nov 2013, 03:28 PM
Hi,

I have a RadGridView binded to a DataSet which contains many DataTables. I have also defined a GridViewSelectColumn to let the displayed rows Selectable. But when i navigate to another screen then return, i lose the selection in the grid. This may be caused by the refresh of the grid data. I want to let selection stay until i destroy the screen instance.

Here's my code :

   
<telerik:RadGridView  CanUserSelect="False" RowLoaded="radGridSuccessRows_RowLoaded" IsFilteringAllowed="True"
                                     ShowGroupPanel="False" Name="radGridSuccessRows"  AutoGenerateColumns="True"
                                     RowIndicatorVisibility="Collapsed" AutoGeneratingColumn="OnAutoGeneratingColumn"
                                     ItemsSource="{Model.ValidationDataSet,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
                                     EnableColumnVirtualization="True" EnableRowVirtualization="True"
                                     SelectionChanged="RadGridSuccessRows_OnSelectionChanged" DataLoadMode="Asynchronous" >
     <telerik:RadGridView.Columns>
                    <telerik:GridViewSelectColumn/>
     </telerik:RadGridView.Columns>
  </telerik:RadGridView>



No answers yet. Maybe you can help?

Tags
GridView
Asked by
Yel
Top achievements
Rank 1
Share this question
or