My form have two type select province and city. If i wan selected the city, where the city is depend on province like. How must i do?
Could you send it to my email too? Thanks for your help and support. Thanks.
It's part of paid package. Subscription can be renewed by email request. Check your email.
Same question, knowing that the data of city and province is in the database and not a hard coded list. What should I do.
Here is working example with code:
Live demo: http://www.phpgrid.org/demo/demos/appearence/dropdown-country-city.php
Demo code: http://pastebin.com/JEs3ccL5
SQL dump: http://pastebin.com/zDpBNqgz
Thanks for your rapid response. I'm facing now a situation where the country drop down is in the parent grid and the city drop down is in the child grid.
I would like to update the edit values "and the search values" for the column city in the child grid based on the selected Parent's country value.
If you are using parent+subgrid model, this is doable by passing extra param of country to subgrid and change the dropdown values (by php if conditions) based on parent's country value.
Refer demos/master-detail/subgrid.php for passing extra params.
If you are using master+detail grid, this may not be easy as the search values / edit values are populated at grid load time.
How useful was this discussion?
Click on a star to rate it!
Average rating / 5. Vote count:
We are sorry that this post was not useful for you!
Let us improve this post!
Thanks for your feedback!