Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
860
Checking for un-posted grid changes
posted

       I have a grid which is loaded when a user clicks a button.   The user click a button and it loads the grid.  They make a change but don't commit that change.  Instead they click the button again,  We get an error, missing record exception.   I decided to commit the grid:

var

 

 

editBehavior = grid.get_behaviors().get_editingCore();

editBehavior.commit();

When the button is clicked, i have a timing issue.  The grid is commit back but the click event also does a post.  I try to check to see if an update is occurring:

grid.get_behaviors().get_editingCore().get_isUpdating()

but this returns false...

 

Do you have any ideas about solving this problem.

 

Parents
No Data
Reply
  • 8160
    posted

    Hi mdelgado,

    Probably you are getting this error because the grid expects to have a datasource after reloading or if any of the rows no longer exist. Can you post the code of your aspx page and cs.

    Thanks

Children
No Data