admin管理员组文章数量:1332107
Dim sb As StringBuilder = New StringBuilder()
sb.Append("<script language=javascript>")
sb.Append(" function SetValueInBody() {")
sb.Append(" var _dllGetDynamicFieldKey = $find('" + _dllGetDynamicFieldKey.ClientID + "');")
sb.Append(" alert('Set Value: ' + _dllGetDynamicFieldKey.SelectedItem);")
sb.Append(" }")
sb.Append("</script>")
I'm trying to get the selected item from a radComboBox in Jquery with the intention of populating a RadEditor against it. I'm generating teh JS in the back end as above where dllGetDynamicFieldKey is the RadComboBox, the above method is how I've seen it done to get the selected value however it always es back undefined for me when the alert is fired. Any ideas whats correct?
Dim sb As StringBuilder = New StringBuilder()
sb.Append("<script language=javascript>")
sb.Append(" function SetValueInBody() {")
sb.Append(" var _dllGetDynamicFieldKey = $find('" + _dllGetDynamicFieldKey.ClientID + "');")
sb.Append(" alert('Set Value: ' + _dllGetDynamicFieldKey.SelectedItem);")
sb.Append(" }")
sb.Append("</script>")
I'm trying to get the selected item from a radComboBox in Jquery with the intention of populating a RadEditor against it. I'm generating teh JS in the back end as above where dllGetDynamicFieldKey is the RadComboBox, the above method is how I've seen it done to get the selected value however it always es back undefined for me when the alert is fired. Any ideas whats correct?
Share Improve this question asked Feb 19, 2010 at 9:23 IsrafelIsrafel 1,1622 gold badges15 silver badges29 bronze badges1 Answer
Reset to default 5Apologies, got it, I should have used .get_value() to get the selection
本文标签: javascriptRadComboBoxhow to get selectedItemStack Overflow
版权声明:本文标题:javascript - RadComboBox, how to get selectedItem - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742224292a2435790.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论