Hi -
What is the proper way to bind a datasource to RadGrid in the codebehind using a value retrieved from a combobox on the client?
I have a routine in the codebehind which requires the data in item.get_value() for generating the datasource.
Thanks in advance for your help.
What is the proper way to bind a datasource to RadGrid in the codebehind using a value retrieved from a combobox on the client?
<
telerik:RadComboBox ID="comboManagers"
Runat="server"
Height="115px"
Width="250px"
Skin="Sunset"
EnableLoadOnDemand="true"
AllowCustomText="True"
OnClientSelectedIndexChanged="LoadGrid"
>
<
CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</telerik:RadComboBox>
<telerik:RadGrid ID="RadGrid1"
runat="server" AllowPaging="True"
AllowSorting="True"
GridLines="None"
ShowGroupPanel="True"
OnNeedDataSource="RadGrid1_NeedDataSource"
>
...
function
LoadGrid(combo, eventargs) {
var grid = $find("RadGrid1");
if (grid != null)
{
var item = eventarqs.get_item();
???
}
}
I have a routine in the codebehind which requires the data in item.get_value() for generating the datasource.
Thanks in advance for your help.