PDA

View Full Version : display json data in grid



bhumika
28 Apr 2011, 4:44 AM
i am new to ext js.
currently my grid displays the data from json store
but i want to reload my grid on combo box change event.
i have json object which have the data to display in grid when reload.
but i dont know how can i display them in my grid.
can any one help me?
thanks.

friend
28 Apr 2011, 4:52 AM
yourGrid.store.loadData(<JSON DATA HERE>)

fay
28 Apr 2011, 4:53 AM
Take a look at the loadData (http://dev.sencha.com/deploy/ext-3.3.1/docs/?class=Ext.data.JsonStore&member=loadData) method.



your_json_store.loadData(your_json_object);