View Full Version : refresh grid after adding a new item to database

28 Jan 2013, 12:37 AM
my problem is see i have add button on the grid tool bar on click a window will apear and i managed to save in database...evry thing is fine except the added item appear only after a grid refresh..i wanted to refresh the grid right after the add window is closed .to do that i tried so hard... please help...

28 Jan 2013, 2:08 PM
If you are inserting the data into the store, the grid will display the new record immediately.

var values = form.getValues();


29 Jan 2013, 11:27 PM
no i directly inserted the data to database with out using a store and i think that was why the store.sync() function was not working for me to refresh the gird......but i tried to reload the store again and it works fine using store.load() function...the grid finally refreshed ..problem solved..... scottmartin 10ks for ur usual support . ~o)