When I run the code, it displays item.value = Undefined and item.text = Undefined.
How do I get the value and text from radcombobox?
<script type="text/javascript">
function
templateimageselected(item) {
alert(item.value +
" " + item.text);
}
</script>
<
telerik:RadComboBox id="rcbTemplateImg" runat="server"
Width="100px" Height="115px"
Skin="Vista" DataValueField="TemplateID" DataTextField="TemplateName"
MarkFirstMatch="false" HighlightTemplatedItems="True"
ShowToggleImage="True" AllowCustomText="false"
EnableLoadOnDemand="True"
OnClientSelectedIndexChanging="templateimageselected">
<ItemTemplate>
<table style="width: 375px" class="comboTable" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 125px;" class="comboItemCell">
<div class="comboItem">
<img src='<%# DataBinder.Eval(Container.DataItem, "ThumbnailPath")%>' alt='<%# DataBinder.Eval(Container.DataItem, "TemplateName")%>'/>
<%
# DataBinder.Eval(Container.DataItem, "TemplateName")%>
</div>
</td>
</tr>
</table>
</ItemTemplate>
<CollapseAnimation Duration="200" Type="OutQuint" />
<ExpandAnimation Type="OutQuart" />
</telerik:RadComboBox>
