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
580
Automatically and quietly save changes via AJAX?
posted

I think I used to do this on some older Infragistrics grid, and maybe I'm missing something obvious here, but is there any way to have the grid automatically post back changes via AJAX as they are made?  So that as soon as a user edits a cell and moves to another (or a row) the change is posted back to the server and saved in the background.

Parents
  • 5739
    posted

    Hi,

    You just have to capture the exitededitmode client side event call the commit method off of editingcore.  You also have to handle the rowupdating event server side.  You don't need any code there, but the commit won't work unless you have that event there.

        function ExitedEditMode() {
            var grid = ig_controls["WebDataGrid1"];
            var editingCore = grid.get_behaviors().get_editingCore();
            editingCore.commit();
        }

     

    Ed

Reply Children