How can I force the post back of the RadSearchBox (onSearch event) when someone chooses one of the items from the ContextList? I want to be able to change a secondary list when an item from the ContextSearch is changed (just like they entered something in the search window and clicked search). I tried to fire the postback of the SearchBox but it doesn't seem to be returning it to the server to process the items selected. It seems to fire the panel update, but not the server side OnSearch event.
<telerik:RadSearchBox ID="RadSearchBox1" runat="server" RenderMode="Lightweight"
DataTextField="DiagForList" MaxResultCount="15"
EmptyMessage="Search/Select Order to left"
DataValueField="DiagnosisCodeID"
DataKeyNames="MapField"
style="margin-left: 10px; margin-top: 1px;"
Width="440px" HighlightFirstMatch="True"
SearchContext-Enabled="true"
DataSourceID="SqlDataSourceDG"
OnClientSearch="OnClientSearch"
ToolTip="Select the order from the drop down and/or search for a diagnosis."
OnDataSourceSelect="RadSearchBox1_DataSourceSelect"
OnSearch="RadSearchBox1_Search" MinFilterLength="3">
<SearchContext DataSourceID="SqlUpdateABNFlag" DataTextField="MapField" DataKeyField="MapField" DropDownCssClass="contextDropDown" />
<DropDownSettings Width="500px" />
<Localization DefaultItemText="All Orders" LoadingItemsMessage="Loading...." />
</telerik:RadSearchBox>
Script:
function pageLoad() {
var $ = $telerik.$;
$(".rsbSCSlide ").on("click", ".rsbListItem", function (e) {
e.preventDefault();
RaiseClickEvent('RadSearchBox1');
});
}
function RaiseClickEvent(id) {
__doPostBack(id,'arguments'');
}