Radgridview filtering removed selected item from radgridview list.

2 posts, 0 answers
  1. Barunkumar
    Barunkumar avatar
    1 posts
    Member since:
    Jul 2016

    Posted 10 Sep 2016 Link to this post

    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 ?


  2. Stefan
    Stefan avatar
    792 posts

    Posted 12 Sep 2016 Link to this post

    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.
Back to Top