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
2048
Updating and Sorting - Autocommit to refresh data
posted

Hi,

I was using grid option AutoCommit to update my grid data after an add/edit/delete acton (note that I am not using batch mode to write on db).

It was all right, but then I decided to introduce Sorting feature and I have noticed this: if I use Sorting, autoCommit does not have effect, I have to refresh the page directly from the browser to let every added/edited/deleted row to be seen. I know for sure that controller action is called and oeprations on db are correctly executed.

Is there any solution?

Thanks,

Flavio

Parents
No Data
Reply
  • 6279
    posted

    Hi Flavio,

     

    I've attached an MVC3 sample project to this reply - can you please take a look at it and let me know if you can reproduce the problem you're facing with it?

    I tried adding/updating and deleting rows and those operations worked fine with remote sorting.
    (Please note that I explicitly clicked the "Save Grid Changes" button after each operation in order to post the changes to the server-side) 

     

    Just a note: Remote sorting requires data rebinding which truncates any pending transaction so be sure that you are calling the saveChange() API method after each updating operation    or    before each remote feature operation (sorting for example).

     

    Cheers,

    Borislav

    sample-11.2-Chaining.zip
Children