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

Grid sorts before it closes editmode on save

1 Answer 6 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Peter Sitero
Top achievements
Rank 1
Peter Sitero asked on 17 Nov 2009, 07:14 PM
I have a grid that all the rows are open in edit mode using inplace updating.
The problem is that when I save a row (let's say this record is the 3rd row of the grid).
When the grid rebinds it will apply the sort expression of the bound sql statement and if the saved value is part of the sort the record will move to a different position in the grid (let's say it bubbled up to the 2nd row because of the sort)
Next the grid will close the edit mode and show the edit pencil but it closes the 3rd row instead of the new position of the edited record at the 2nd row.  It appears to sort before it closes the edit mode?  This makes the user think that the record wasn't saved and really messes with their head...  Any clever ideas on how to fix this one?

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 20 Nov 2009, 09:31 AM
Hello Peter,

Could you please clearify/confirm if you have an "order by" clause in the Sql statatement of the grid data source? If so, I suggest that you remove it and use the grid Sorting Expressions instead.
Give it a try and let me know how it goes.

Kind regards,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Peter Sitero
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or