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
2165
How to clear grid?
posted

I need to clear a hierarchical grid after user click on Save button, if everything is ok then the user should be able to reuse the same grid to enter new data. How to do that?

Parents
  • 18204
    Offline posted

    Hello Luis Ledesma,

     

    Thank you for posting to our forums!

    Why do you need to clear out the rows in the grid?  Are you using the grid as a type of input form?  Our grids are designed to display the data they are bound to.  If you have the data in the igGrid's datasource it will continue to display the new data the user entered.  You would need to either remove the data from the datasource or bind the grid to a new, empty datasource.

    Please see this jsFiddle that demonstrates how you could assign a new datasource to an igGrid.

    If you have any further questions or concerns with this, please let me know.

Reply Children