PDA

View Full Version : [CLOSED] Refreshing the grid based on combobox selection



Tarun_Chand
Mar 21, 2013, 7:48 AM
Hi,

I've a grid with few columns. Also four comboboxes outside the grid. Based on the combobox selection the grid's data shiould be changed/refreshed. Can you please suggest a way out.

Thanks.

Daniil
Mar 21, 2013, 11:04 AM
Hi Tarun Chand,

A ComboBox's Select event fires when a user selects a new item. You handle this event to apply required actions.


the grid's data shiould be changed/refreshed

1. If a Store is configured without any proxy.

1.1. Loading new data from a server. Call a DirectEvent or a DirectMethod with:


store.DataSource = newData;
store.DataBind()

1.2. Loading new data on a client. You can use a Store's loadData method.
http://docs.sencha.com/ext-js/4-2/#!/api/Ext.data.Store-method-loadData


2. If a Store is configured with some proxy
Then you should use a Store's load and reload client side methods. Just configure/pass required parameters.