Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Accessing whole data row in optionDataSource's picklist on SelectItem change

$
0
0
Hi Isomorphic,

I have a DynamicForm where I want to disable some FormItems if a SelectItem in the form changes to some specific (yet not static) values.

The SelectItem has a setOptionDataSource() and also setPickListFields() with some hidden ListGridFields.

The value I decide on whether to hide FormItems in the DynamicForm is not the valueField of the SelectItem, but one of the hidden columns.

Example SelectItem data:
Code:

id  text            won_lost(hidden)
1  Won            w
2  Lost-price      l
3  Lost-competitor l

id is the valueField, won_lost is hidden. On won_lost="l" I want to do my changedHandler actions.

How do I get this value best (using current 5.0p)?

Thank you & Best regards
Blama

Viewing all articles
Browse latest Browse all 4756

Trending Articles