I have a grid that is using declarative client side binding to a aspx pagemethod to get data which works fine.
I have added a FilterTemplate to one column which has a ComboBox in which pulls a listing from a second page method.
The combobox is populated but I don't know how to trigger the grid to repopulate when the combobox SelectedIndexChanged event fires.
Is there an example of this somewhere please?
Cheers,
Nick
<telerik:RadGrid ID="rgDiscoveries" runat="server" AllowFilteringByColumn="True" AllowSorting="true" AllowPaging="True" GridLines="None" AutoGenerateColumns="true" Culture="en-GB"> <ClientSettings> <DataBinding Location="Default.aspx" SelectMethod="GetDataAndCount" /> </ClientSettings>...I have added a FilterTemplate to one column which has a ComboBox in which pulls a listing from a second page method.
<telerik:GridBoundColumn DataField="ScriptName" HeaderText="Script Name" UniqueName="scriptName" DataType="System.String"> <FilterTemplate> <telerik:RadComboBox ID="filterScriptName" runat="server" EmptyMessage="Select a script" EnableLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true" OnClientSelectedIndexChanged="filterScriptName_SelectedIndexChanged"> <WebServiceSettings method="GetScriptNames" Path="Default.aspx" /> </telerik:RadComboBox> </FilterTemplate></telerik:GridBoundColumn>The combobox is populated but I don't know how to trigger the grid to repopulate when the combobox SelectedIndexChanged event fires.
function filterScriptName_SelectedIndexChanged(sender,args) { var tableView = $find("<%= rgDiscoveries.MasterTableView.ClientID %>");
tableView.filter("ScriptName", args.get_item().get_value(), "EqualTo"); // What goes here??}Is there an example of this somewhere please?
Cheers,
Nick