I have an error retrieving the selected radcombobox item (clientside). Why doen't work? I receive error "Error: Object doesn't support this property or method"
http://www.telerik.com/help/aspnet-ajax/combo_clientsideradcombobox.html
This is my test page:
http://www.telerik.com/help/aspnet-ajax/combo_clientsideradcombobox.html
This is my test page:
<
script
type
=
"text/javascript"
>
function getValue() {
var combo = <%=RadComboBox1.ClientID %>;
alert('1');
var sel = combo.get_selectedItem();
}
</
script
>
<
telerik:RadComboBox
ID
=
"RadComboBox1"
runat
=
"server"
>
<
Items
>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"RadComboBoxItem1"
Value
=
"RadComboBoxItem1"
/>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"RadComboBoxItem2"
Value
=
"RadComboBoxItem2"
/>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"RadComboBoxItem3"
Value
=
"RadComboBoxItem3"
/>
</
Items
>
</
telerik:RadComboBox
>
<
input
id
=
"Button1"
type
=
"button"
value
=
"button"
onclick
=
"getValue()"
/>