how to refresh a grid

hi,
I have a grid,I have loaded the grid using json object.
I have a button.when i click on the button my grid has to refresh.how can i refresh/reload the grid by using json object.

Something like

grid.clearAll(); grid.parse(new_data, "json");

will delete old data and will load a new one.

and how did it with time delay ?? for example each 10sec ?

For medum sizing grid, rendering time is a less that second, so you call that code each 10seconds, and it will run smoothly.

If you are only updating existing values ( no adding | deleting of data ), updateFromXML ( and its json variation ) can be used. It provides better user experience, as grid will not lost it state ( sorting, selection, scrolling ) during data updates.