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
165
Batch Updating with Manual CRUD scenario
posted

Hi,

Please help answer my question if Batch Updating and Manual CRUD works for WHDG?

If it works, can you explain how does the various Postback events run? (Eg. From Pageload to RowAdding..etc for every rows updated?)

Take Adding a new row for example; And on every RowAdding event, are we able to databind only at the end of the LAST raised RowAdding event? Or must we databind on EVERY RowAdding event?

Please help me urgently!

Thank you,

Chinho

*I am using IG 2012, pleas ignore my signature, I do not know how to change it yet

Parents
  • 49378
    Verified Answer
    posted

    Hello Chinho,

    Thank you for your questions !

    WebHierarchicalDatagrid does support Manual CRUD with batch updating. The manual CRUD events (adding/deleting/updating) are fired sequentially at the control event handling stage, i.e after Page_Load. For instance, if there are multiple new row additions, the RowAdding event would be fired once for each one, starting with the row that was added first on the client. Rebinding the grid on each row addition therefore should not be necessary, as what is really being edited is the datasource itself. The grid may therefore be bound on the last row to be added, but for convenience it may be more approapriate to call DataBind at the PreRender stage when all CRUD operations are already done.

    I am attaching a small sample illustrating this in a DataSet. Hope this helps. Please do not hesitate to contact me with any questions.

    WHDGMAnualBatchCRUD.zip
Reply Children
No Data