PDA

View Full Version : Combobox in grid load different values on the fly



RSidetrack
16 Jan 2010, 5:50 PM
I may have just been staring at the computer too long but I can't figure out how to get a combo box in my editor grid to load values on the fly.

For example - say I want to have a list of cities and states in a grid then have each row have a combo box with all of the counties in that state so I can select it and update a database, how would I go about doing it.

Basically the grid would load with 3 columns: State, City and County

MD, Frederick, ---- <- Want a combobox with all of the counties available in MD
PA, Chambersburg, ---- <- Want a combobox with all of the counties available in PA

Then I want it to also have the correct values listed for already set items
MD, Hagerstown, Washington <- But can drop down to set a different county in MD
MD, Frederick, -----
PA, Fayetteville, Franklin
PA, Chambersburg, -----

And I need it all to load from json data returned from the server.

Hope this makes sense.

Thanks!

So for example