How can I control the select box of details table after selecting master table? For example when using a master-detail grid add - if I select BMW under model in Master table, I want grid details only have BMW cars
Drop Down Parent field from Master Table
-
- User
- Posts: 1601
This is client side selection. So, use Startup Script to add your change event to your field in your master table (see api.jquery.com/change/) and base on this value for your filter and remove it (see api.jquery.com/filter/ and api.jquery.com/remove/).
$("#x_yourmasterfield").change(function() {
var mastersel = $("#x_yourmasterfield").val();
// your code to remove select option for your field in detail table
});