I tried this,. and it works fine if textbox:
| var myTxtBox = document.getElementById("<%= RadPanelbar1.FindItemByValue("TemplateHolder").FindControl("TextBox1").ClientID %>"); |
| alert(myTxtBox.value); |
What if its a radcombobox that you are getting reference to? When I do
var combo = document.getElementById("<%= RadPanelbar1.FindItemByValue("TemplateHolder").FindControl("ComboBox1").ClientID %>");
var items = combo.Items;
I get error saying 'combo' is undefined... Can I cast in js to RadCombobox? I need to do this on client side. I need var combo to be object type of radcombobox, so I can manipulate it.
THanks.