View Full Version : dependent dropdowns in gris=d editor
6 Sep 2012, 3:36 AM
I have a EditorGridPanel which contains two columns, country and state, each being implemented as a combobox. User can add as many rows as he/she wants. I have a list of countries and cities in in the corresponding stores and everything is working fine now. I want to add one enhancement to it for which i need some help. Currently i am loading all the cities in the combobox, instead of that, i want to load only the cities from selected country. I cant think of a way to do this, appreciate your help
6 Sep 2012, 6:06 AM
i guess, you may filter your city combo depending on the value of country combo.
just use select event on your country combo and filter the city store.
Sample for filtering:-
6 Sep 2012, 10:16 PM
Yes I did like it. when I changing the country the state combo store get changed and I am able to store this values in database.but what after the when I reolad the grid.
After displaying grid the associted state combo must have only those values with respect to country combo value of that row.
Powered by vBulletin® Version 4.1.5 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.