Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
655
DropDownProvider SetSelectedValue() on clientside
posted

What is the recommended way to set the selected value of a dropdownprovider(WebDropDown) on the client side via javascript?

I have a WebHeirarchicalDataGrid with a column that has a DropDownProvider as the editor. On the client side, when I add a new row I want to be able to set the selected value for this dropdown. With the old UltraWebGrid you could just set the value and things just worked. With the new WHDG, setting the value also sets the display text for the dropdown unless you specify the text to display.

I am looking for something like setSelectedItem() or setSelectedIndex(). I saw one post which suggested setting the innerhtml of the element and this would auto select the appropriate item, this seems like a hack...

 

 

 

Parents Reply Children