myGrid = new dhx.Grid(null, {
columns: [
{width:120, id:"COMBO1", type:"string", header:[{text:"COMBO1", align:"center"}], align:"center", editorType: "combobox", editable: true
, options: [{id: "11", value: "TEST1"}, {id: "22", value: "TEST2"}]
}
, {width:120, id:"COMBO2", type:"string", header:[{text:"COMBO2", align:"center"}], align:"center", editorType: "combobox", editable: true
, options: [
{id: "33", value: "TEST3", filter:"11"}
, {id: "44", value: "TEST4", filter:"11"}
, {id: "55", value: "TEST5", filter:"22"}
, {id: "66", value: "TEST6", filter:"22"}
]
}
]
});
After grid creation, when combo box options are given as in the source above, is it possible to filter so that only the necessary options are shown within the given options for each row?
For example, I want to show only TEST3 and TEST4 options in COMBO2 when COMBO1 is selected as TEST1 in the first row, and only TEST5 and TEST6 options in COMBO2 when COMBO1 is selected as TEST2 in the second row.
I wonder if it is possible to implement.
If there is a way, please provide an example source.