Cascaded DropDownList

Jan 12, 2013 at 3:58 PM


Would you please guide me how to make the cascaded dropdownlist, in the edit form.

I have a country dropdownlist when the user chooses a country I want to filter the City dropdownlist to display only the cities in the selected country.




Jan 14, 2013 at 9:49 AM


There is no mechanism inside the jqGrid itself which would allow for easy creation of dropdowns cascade so this functionality requires a lot of client side scripting. I believe that following post by Oleg explains the required client side scripts very good:

Now as most of the required events are easly accessible through the JqGridHelper, you will need to implement custom JqGridColumnEditableAttribute in order to be able to set the handler for 'change' event through DataEvents property. You can read some details about it here:

I'm considering adding some support for this scenario built into the helper but I can make no promise on that at this point.

Tomasz Pęczek