Grid sorts before it closes editmode on save

2 posts, 0 answers
  1. Peter Sitero
    Peter Sitero avatar
    15 posts
    Member since:
    Oct 2009

    Posted 17 Nov 2009 Link to this post

    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?
  2. Iana Tsolova
    Iana Tsolova avatar
    3388 posts

    Posted 20 Nov 2009 Link to this post

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