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

Filtering Row causes a selection change

1 Answer 101 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jeremy
Top achievements
Rank 1
Jeremy asked on 15 Sep 2010, 08:06 PM
We have upgraded to the new 2010.2.10.0914 version of the GridView (from version 2010.1.10.308). 

In the prior version that we were using, when entering the filter row the grid still maintained the databound selected row.  In the new version this does not seem to be the case.  As soon as a cell in the filter row is clicked then the selected data row is no longer selected.

The behavior of maintaining the selected data, when entering into the filter row, is needed for our application.  How can this be accomplished in the new version of the GridView?

Thank you for any help and information you can provide.
Jeremy

1 Answer, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 21 Sep 2010, 10:26 AM
Hello Jeremy,

Thank you for writing.

It is true that in the new version of RadGridView the current row is maintained in slightly different way and when the user enters in filter row, it has been changed. Still you can easily save the previous current row in CurrentRowChanging event and use in your logic:
 
GridViewRowInfo _row;
void radGridView1_CurrentRowChanging(object sender, CurrentRowChangingEventArgs e)
{
    if (e.NewRow is GridViewFilteringRowInfo)
    {
        _row = e.CurrentRow;
    }
    else
    {
        _row = null;
    }
}

Let me know if you have any other questions.

Sincerely yours,
Martin Vasilev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Jeremy
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Share this question
or