Refresh grid after insert/update

2 posts, 1 answers
  1. Raja
    Raja avatar
    43 posts
    Member since:
    Oct 2013

    Posted 22 Dec 2015 Link to this post


    I have a grid that will create multiple records in the database on Create/Update of any record in the grid. I would like to refresh the grid once the create/insert is complete so that all the newly created records will be visible to the user. How can I do that?

  2. Answer
    Dimiter Topalov
    Dimiter Topalov avatar
    310 posts

    Posted 23 Dec 2015 Link to this post

    Hi Raja,

    You can listen for the save or saveChanges event of the Grid (depending on the edit mode you are using) and attach a dataBound handler to the Grid, which will be executed only once. Refresh the Grid dataSource in this dataBound handler with the .read() method of the DataSource. This will get the current records from the database and re-render the Grid using the latest data:

    function onGridSave(e) {"dataBound", function() {;

    Dimiter Topalov
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET AJAX banner
Back to Top