I have a webDropDown in my rowediting template of my webdatagrid. How can I bind its value properly so that when a user clicks a row and pops up the row edit template, the WebDropDropDown will display the rows current value. Please advise. It looks like $get({ClientID}) is used to get and set the value. Does that work with with the webdropdown? or do I need some permutation of $find()? I want to do the same thing with the WebDateChooser. I need to bind it to the current records value.
/>
Thanks,
Chris in San Diego
Hi,
Yep - you are right, it's better to use $find ($get will work as well, but will not be quite clean and will operate directly on the dropdown HTML elements):
<ig:RowEditingClientBinding ColumnKey="DEPR_PRDM_ID" ControlID="masterpDDL"
GetValueJavaScript="$find({ClientID}).get_currentValue()" SetValueJavaScript="$find({ClientID}).set_currentValue({value}, true)"
This should work.
Angel