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

Radgridview filtering removed selected item from radgridview list.

1 Answer 201 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Barunkumar
Top achievements
Rank 1
Barunkumar asked on 10 Sep 2016, 05:43 PM

Hi Team,

I am using radgridview telerik control and I am getting some issue when doing filtering in radgirdview control. please see details below

Suppose I have selected some item in radgridview list and after that if I click filter option and do some filtered and after that I reverted back my filtered option,

then in radgridview list I have all items again but whatever I selected earlier is not persisted. 

 So is their any way to persist my selected item ?

Thanks

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 12 Sep 2016, 02:09 PM
Hi Barunkumar,

I have replied you in the support ticket that you opened regarding this question. I will, however, paste my answer here as well, so that it is shared with the community.

If you are using GridViewSelectColumn and refer to the selection of RadGridView being cleared, this would be the expected behavior. The selection is an operation applied over the current view. When an item is filtered, it is cleared from it, thus the selection cannot be automatically persisted.

What I can suggest you is to write some custom code for manually handling this scenario. For achieving this, you can use the Filtering/Filtered events of RadGridView and set the SelectedItem property of the control to be the previously persisted one.


If you need further assistance or have any concerns regarding this topic, please, let us continue the communication in the aforementioned support thread, so that double posting is avoided.

Thanks in advance for understanding.

All the best,
Stefan X1
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
General Discussions
Asked by
Barunkumar
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or