I have to display two dropdowns in a table where the possible values of the second depend on the selection in the first dropdown.
Usually I use content providers and option groups to provide the possible values of dropdown but here each row of the table might have a different set of possible values. I do not see a solution for that.
Hi,
thanks for your response. I had a look at the sample. That is how I would do it outside a table. But that is not exactly the problem I try to solve. I want to display the two dropdowns in a table.
Construct a DefaultSelectItemGroupProvider for each row:
DefaultSelectItemGroupProvider g = new DefaultSelectItemGroupProvider();
for (int index = 0; index < styles.length; index ++) {
g.add(new DefaultSelectItemProvider(styles[index], styles[index]));
}