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
379
Updating/Inserting row data in a WebGrid Asynchronously
posted

Hi!

    We're using Infragistics WebGrid (v. 9.1) in our application. The LoadOnDemand property of WebGrid is set to 'XML' and Browser is set to 'XML' and XmlLoadOnDemandType to "Accumulative". The requirement is to update the data in the cells of Grid and also to insert a new row in the Grid with data without causing a postback. We used the UpdateCellBatch which was working fine until we set the above properties (LoadOnDemand) and thereafter the UpdateCellBatch stopped working. We need to use LoadOnDemand feature of WebGrid, so can you suggest some other method of inserting/updating data without causing a page postback? If we can do it Asynchronously then there is no problem. Please provide a solution for the same and if possible please provide a link to some sample.

*Note: We're using Hierarchical Grid bound to a Dataset with a relation between 2 tables.

Thanks
Anuj

  • 45049
    Suggested Answer
    posted

    Anuj,

    The "Batch" events are disabled when you are using the grid's AJAX functionality (Browser = "Xml" and DisplayLayout.LoadOnDemand = "Xml").  Use UpdateCell instead of UpdateCellBatch - any updates to the grid will be then processed asynchronously as each cell is updated (once that cell loses focus).

    You might consider using UpdateRow instead, so that updates are processed asynchronously as each row loses focus, rather than each cell.