Using the .get_value() in the OnClientDropDownClosed event of RadComboBox, produces empty value. The OnClientSelectedIndexChanged event works fine, but I need to be able to kick off the javascript even if the selected index doesn't change.
My RadComboBox element:
<telerik:RadComboBox ID="CustomerSearch" runat="server" Width="180" Height="160"
MarkFirstMatch="true" AllowCustomText="true" CssClass="CustomerSearch" AutoPostBack="false"
EnableLoadOnDemand="true" EnableVirtualScrolling="true" OnItemsRequested="CustomerSearch_ItemsRequested"
OnClientDropDownClosed="searchnav" EmptyMessage="Select a customer" DataSourceID="dsCustomer" DataTextField="CustomerName"
DataValueField="NavPath" BackColor="White" Skin="Forest" />
My SQLDataSource element:
<asp:SqlDataSource ID="dsCustomer" runat="server"
SelectCommand="CustomerSearchName" SelectCommandType="StoredProcedure">
</asp:SqlDataSource>
My Javascript:
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
<script type="text/javascript">
function searchnav(sender, args) {
var iframe = document.getElementById('ctl00_iMainPages');
iframe.src = sender.get_value();
}
</script>
</telerik:RadScriptBlock>