I am trying to get a button in the edit form of my RadGrid to cause the text of one control in that form to have text value from the selected item in a dropdown control in that form appended to it. It's almost working, but the call to CustomTextToken.get_value() seems to get the text instead of the value from the dropdown. My strategy is to use a RadTextBox and RadComboBox for the controls holding the text, so that I can set client side on load events and store the controls to Javascript when they are loaded onto the page (should be ok since I only have one edit form open at a time), and then onclick of a button in the edit form, to call a javascript function to do the concatenation.
Also, I'm nervous about using this strategy, because the documentation says that the client side load events might not work if you have AJAX enabled, which I do:
http://www.telerik.com/help/aspnet-ajax/combobox-onclientload.html . There are also posts that recommend the strategy, but the documentation warning gives me pause - is there a better way?
Here's the relevant javascript from my .aspx:
and the contents of the edit form that call the javascript:
and the code-behind that populates the controls:
How to get the value instead?
Thanks!