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

Edit cells while sorting / filtering

5 Answers 110 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Reimund
Top achievements
Rank 1
Reimund asked on 07 Feb 2011, 09:30 AM
Hi,
I'm using the standard sorting and filtering mechanism on an editable radgridview control. Unfortunately after ending the editing of a cell, the sorting / filtering mechanism strikes and the modified row is filtered out or is moved. The mechanism works correctly, but its result ist not what I need.

 What I need is the possibility to sort / filter only when using the possibilities of the grid header. Sorting /filtering after cell editing is unwanted. How can I achieve that?

Regards Reimund

5 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 07 Feb 2011, 09:41 AM
Hi Reimund,

This behavior is by design. If it was not the grid would be left in an invalid state. Each time a change occurs, the view is re-created in order to show data that is consistent with the current filtering and sorting criteria.

I am afraid that you cannot change this behavior.

Kind regards,
Ross
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Reimund
Top achievements
Rank 1
answered on 07 Feb 2011, 09:55 AM
Hi Ross,
thank you very much for your very fast answer.

Is there no chance to suppress the re-creating of the view? Or to customize the end- of-edit-behavior?

Regards Reimund
0
Rossen Hristov
Telerik team
answered on 07 Feb 2011, 11:15 AM
Hello Reimund,

I am afraid that there is not. Even if there was a way, it would break all internal logic to pieces and nothing will work after that.

Thank you for your understanding.

Regards,
Ross
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Bob Mills
Top achievements
Rank 2
answered on 10 May 2011, 03:29 PM
We have the same issue.  Would writing a custom sort help? 
Couldn't the sort be cancelled once the user starts editing? 
Or perhaps the user could click a button to tell it not to re-sort?
0
Reimund
Top achievements
Rank 1
answered on 11 May 2011, 07:41 AM
I solveld my problem very simple. I duplicated the relevant field, so editing works on the original field and the sorting on the copy.
Maybe it's a solution for you too.

Reimund

Tags
GridView
Asked by
Reimund
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Reimund
Top achievements
Rank 1
Bob Mills
Top achievements
Rank 2
Share this question
or