") sb.Append(" func...">

RadComboBox how to get selectedItem

            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 am trying to get the selected item from radComboBox in jQuery with the intention of populating RadEditor against it. I am creating JS at the back, as above, where dllGetDynamicFieldKey is RadComboBox, the method described above is how I saw this to get the selected value, but it always returns undefined for me when a warning is issued. Any ideas right?

+3
source share
1 answer

Sorry, it turned out I had to use .get_value () to get the selection

+5
source

Source: https://habr.com/ru/post/1733492/


All Articles