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
570
With BatchUpdating="true" can i catch all update value on server side
posted

With BatchUpdating="true" can i catch all update value on server side to update manually.

I have 3 bands:

  • Band 1 = All columns = ReadOnly
  • Band 2 = All columns = ReadOnly
  • Band 3 =  2 columns ReadOnly, and 1 column editable
I want to update all modified data only when i click on button save.

Is there possible?

I check on forum and doesn't see a example or situation like i want!

  • 29417
    Offline posted

    Hello robpic ,

     

    I’m just following up to see if you’ve been able to resolve your issue. If you have any questions or concerns or if you need further assistance please let me know.

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer

    Infragistics, Inc.

    http://es.infragistics.com/support

     

  • 29417
    Offline posted

    Hello robpic ,

     

    Thank you for posting in our forum.

     

    When BatchUpdating is enabled for all Bands the modifications you apply to the data in the bands will not be automatically committed until a postback occurs on the page.

    When a postback of any type (including an ajax postback) occurs then all changes for all bands will be committed to the server.

    You can refer to the following example here:

    http://es.infragistics.com/samples/aspnet/hierarchical-data-grid/batch-updating

     

    Note that you can enable or disable the BatchUpdating options on the two bands. When BatchUpdating is enabled for both you can edit fields from both the parent and child grid and in order to save the changes you need to trigger a postback via the “Save Data” button.

     

    Note however that in this scenario the data from all bands is loaded on the page on the initial load (InitialDataBindDepth="3") so no ajax postbacks are triggered when a parent row is expanded. If this was not the case the grid would commit the changes from the parent band when a row is expanded, since that will trigger a postback and force a commit of the changes.

     

    Let me know if you have any questions or concerns regarding this.

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer II

    Infragistics, Inc.

    http://es.infragistics.com/support