Our blazing fast Grid component built with pure JavaScript


Post by prashantgoel »

On our web page, the user can pick certain criteria from a dropdown and we retrieve data from our server based on the specified criteria. We then want to refresh the grid using the new data. What is the best way to remove all records from the grid and bind with the fresh data?


Post by Animal »

"bind"?

Just use the Store's API to set or mutate data.


Post by prashantgoel »

Which APi? Should I use store.removeall and then set store.data=newjson?


Post by mats »

No need to removeAll, setting store.data replaces what's currently in the store.

https://bryntum.com/products/grid/docs/api/Core/data/Store#property-data


Post Reply