This question is locked. New answers and comments are not allowed.
I'm building a grid into a form and I'm looking for a solution to two issues:-
The first is that I have InCell editing in the grid, which is working fine, however I have controls outside the grid that add records using getJSON and then call ajaxRequest() to refresh the grid. If the user has made changes in the grid, but not yet clicked "Save Changes", then the changes are lost when ajaxRequest() is called. I would like to somehow force the grid to save before calling ajaxRequest(), however I cannot see a client side method to do this.
I also couldn't find a property that told me if the grid had unsaved changes... in the interim, I have added a "dirty" flag that gets set to true whenever OnSave fires, and is cleared whenever OnSubmitChanges fires... which is fine, however the user might click "Cancel Changes", and I would like to clear the "dirty" flag, however I can't see an event that fires when "Cancel Changes" is clicked, as with "Save Changes"
In summary:-
- Is there a client side method to "submit" the grid when InCell editing is used?
- Is there a client side property that can tell me if there are unsubmitted/outstanding changes in a grid when using InCell editing?
- Is there a client side event for "Cancel Changes" like OnSubmitChanges is for "Save Changes"
Many thanks in advance
The first is that I have InCell editing in the grid, which is working fine, however I have controls outside the grid that add records using getJSON and then call ajaxRequest() to refresh the grid. If the user has made changes in the grid, but not yet clicked "Save Changes", then the changes are lost when ajaxRequest() is called. I would like to somehow force the grid to save before calling ajaxRequest(), however I cannot see a client side method to do this.
I also couldn't find a property that told me if the grid had unsaved changes... in the interim, I have added a "dirty" flag that gets set to true whenever OnSave fires, and is cleared whenever OnSubmitChanges fires... which is fine, however the user might click "Cancel Changes", and I would like to clear the "dirty" flag, however I can't see an event that fires when "Cancel Changes" is clicked, as with "Save Changes"
In summary:-
- Is there a client side method to "submit" the grid when InCell editing is used?
- Is there a client side property that can tell me if there are unsubmitted/outstanding changes in a grid when using InCell editing?
- Is there a client side event for "Cancel Changes" like OnSubmitChanges is for "Save Changes"
Many thanks in advance