Insert row : explicitely call CommitEdit

2 posts, 0 answers
  1. Marc
    Marc avatar
    1 posts
    Member since:
    Sep 2011

    Posted 01 Sep 2011 Link to this post

    We want to insert the new row and then refresh the grid with appropriate data.
    So in the InsertCompleted callbak of the service, we refresh we collection. 
    When we click the insert button while still having the focus in one cell (e.g. without leaving the row), we get an exception (index was out of range) during the Clear call of the original collection.  We fixed it by explicitely calling the CommitEdit before clearing the collection.

    But in the exception stack trace we see a CommitEdit call, but it looks like it is called too late.  The question is: is the CommitEdit done by the grid too late?  We do we have to doit explicitely?

    The problem des not exist for an update.
  2. Nedyalko Nikolov
    Admin
    Nedyalko Nikolov avatar
    871 posts

    Posted 03 Sep 2011 Link to this post

    Hello Marc,

    Unfortunately I cannot figure out what is going on with the supplied information.
    Could you please send me a sample project which I can debug on my side?
    Thank you in advance.

    Kind regards,
    Nedyalko Nikolov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top