I have a RadGrid in a user control and have Radcombo boxes in Radgrid's Items Template. I want to use Load on demand to populate the combobox in 3rd column of the grid (ddlElementEdit in code below). The data in this column will be populated based on the value selected in the comboboxes in 1st column (ddlETypeEdit in code below) and 2nd column (ddlCOIDEdit) of the grid. Please let me know how can I implement this. Please find the markup of the grid below.
<telerik:RadGrid ID="RadGrid1" GridLines="None" runat="server" AllowAutomaticDeletes="True"
EnableViewState="true" AllowAutomaticInserts="True" Skin="Outlook" ShowHeader="true"
CssClass="GridStyle" AllowPaging="true" PageSize="10"
OnDeleteCommand="RadGrid1_DeleteCommand" OnPageIndexChanged="RadGrid1_PageIndexChanged"
Height="100%" HorizontalAlign="Center"
OnItemDataBound="RadGrid1_ItemDataBound"
onitemcommand="RadGrid1_ItemCommand" ShowGroupPanel="true">
<PagerStyle AlwaysVisible="true" />
<ItemStyle HorizontalAlign="Center" />
<AlternatingItemStyle HorizontalAlign="Center" />
<MasterTableView CommandItemDisplay="Bottom" EnableViewState="true"
NoMasterRecordsText="" EditMode="InPlace" HorizontalAlign="Center" AutoGenerateColumns="False"
Caption="Manual Assignment" TableLayout="Auto" GroupLoadMode="Server">
<GroupByExpressions>
<telerik:GridGroupByExpression>
<SelectFields>
<telerik:GridGroupByField FieldName="Seq"
HeaderValueSeparator=":"></telerik:GridGroupByField>
</SelectFields>
<GroupByFields>
<telerik:GridGroupByField FieldName="Seq" SortOrder="Ascending"></telerik:GridGroupByField>
</GroupByFields>
</telerik:GridGroupByExpression>
</GroupByExpressions>
<Columns>
<telerik:GridButtonColumn ButtonType="ImageButton" ConfirmDialogType="RadWindow"
ConfirmText="Delete this Element?" CommandName="Delete" Text="Delete" ConfirmTitle="Delete"
UniqueName="DeleteColumn" ItemStyle-Width="50px" HeaderStyle-Width="50px">
<ItemStyle CssClass="MyImageButton" HorizontalAlign="Center" />
</telerik:GridButtonColumn>
<telerik:GridTemplateColumn ItemStyle-Width="125px" UniqueName="ManETypeCol"
HeaderText="Type" HeaderStyle-Width="125px">
<ItemTemplate>
<telerik:RadComboBox ID="ddlETypeEdit" runat="server" AutoPostBack="true" DataSourceID="SqlDataSource2"
DataTextField="Description" DataValueField="ID" Width="110px" EnableViewState="false"
OnSelectedIndexChanged="ddlETypeEdit_SelectedIndexChanged" NoWrap="true" OnDataBound="ddlETypeEdit_DataBound">
</telerik:RadComboBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn ItemStyle-Width="225px" UniqueName="ManCOIDColumn" HeaderText="Location" HeaderStyle-Width="225px">
<ItemTemplate>
<%--<telerik:RadComboBox ID="ddlCOIDEdit" runat="server" AutoPostBack="true" Width="200px"
DataSourceID="SqlDataSource3" DataTextField="CODescription" DataValueField="coID"
OnSelectedIndexChanged="ddlCOIDEdit_SelectedIndexChanged" EnableViewState="false" NoWrap="true" OnDataBound="ddlCOIDEdit_DataBound">
</telerik:RadComboBox>--%>
<telerik:RadComboBox ID="ddlCOIDEdit" runat="server" AutoPostBack="true" Width="200px"
OnSelectedIndexChanged="ddlCOIDEdit_SelectedIndexChanged" EnableViewState="false" NoWrap="true" OnDataBound="ddlCOIDEdit_DataBound">
</telerik:RadComboBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn ItemStyle-Width="225px" UniqueName="ManElementColumn"
HeaderText="Element" HeaderStyle-Width="225px">
<ItemTemplate>
<telerik:RadComboBox ID="ddlElementEdit" runat="server" AutoPostBack="true" Width="200px"
EnableViewState="false" OnSelectedIndexChanged="ddlElementEdit_SelectedIndexChanged" NoWrap="true" OnDataBound="ddlElementEdit_DataBound"
EnableLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true" OnItemsRequested="ddlElementEdit_ItemsRequested">
</telerik:RadComboBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:RadGrid ID="RadGrid1" GridLines="None" runat="server" AllowAutomaticDeletes="True"
EnableViewState="true" AllowAutomaticInserts="True" Skin="Outlook" ShowHeader="true"
CssClass="GridStyle" AllowPaging="true" PageSize="10"
OnDeleteCommand="RadGrid1_DeleteCommand" OnPageIndexChanged="RadGrid1_PageIndexChanged"
Height="100%" HorizontalAlign="Center"
OnItemDataBound="RadGrid1_ItemDataBound"
onitemcommand="RadGrid1_ItemCommand" ShowGroupPanel="true">
<PagerStyle AlwaysVisible="true" />
<ItemStyle HorizontalAlign="Center" />
<AlternatingItemStyle HorizontalAlign="Center" />
<MasterTableView CommandItemDisplay="Bottom" EnableViewState="true"
NoMasterRecordsText="" EditMode="InPlace" HorizontalAlign="Center" AutoGenerateColumns="False"
Caption="Manual Assignment" TableLayout="Auto" GroupLoadMode="Server">
<GroupByExpressions>
<telerik:GridGroupByExpression>
<SelectFields>
<telerik:GridGroupByField FieldName="Seq"
HeaderValueSeparator=":"></telerik:GridGroupByField>
</SelectFields>
<GroupByFields>
<telerik:GridGroupByField FieldName="Seq" SortOrder="Ascending"></telerik:GridGroupByField>
</GroupByFields>
</telerik:GridGroupByExpression>
</GroupByExpressions>
<Columns>
<telerik:GridButtonColumn ButtonType="ImageButton" ConfirmDialogType="RadWindow"
ConfirmText="Delete this Element?" CommandName="Delete" Text="Delete" ConfirmTitle="Delete"
UniqueName="DeleteColumn" ItemStyle-Width="50px" HeaderStyle-Width="50px">
<ItemStyle CssClass="MyImageButton" HorizontalAlign="Center" />
</telerik:GridButtonColumn>
<telerik:GridTemplateColumn ItemStyle-Width="125px" UniqueName="ManETypeCol"
HeaderText="Type" HeaderStyle-Width="125px">
<ItemTemplate>
<telerik:RadComboBox ID="ddlETypeEdit" runat="server" AutoPostBack="true" DataSourceID="SqlDataSource2"
DataTextField="Description" DataValueField="ID" Width="110px" EnableViewState="false"
OnSelectedIndexChanged="ddlETypeEdit_SelectedIndexChanged" NoWrap="true" OnDataBound="ddlETypeEdit_DataBound">
</telerik:RadComboBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn ItemStyle-Width="225px" UniqueName="ManCOIDColumn" HeaderText="Location" HeaderStyle-Width="225px">
<ItemTemplate>
<%--<telerik:RadComboBox ID="ddlCOIDEdit" runat="server" AutoPostBack="true" Width="200px"
DataSourceID="SqlDataSource3" DataTextField="CODescription" DataValueField="coID"
OnSelectedIndexChanged="ddlCOIDEdit_SelectedIndexChanged" EnableViewState="false" NoWrap="true" OnDataBound="ddlCOIDEdit_DataBound">
</telerik:RadComboBox>--%>
<telerik:RadComboBox ID="ddlCOIDEdit" runat="server" AutoPostBack="true" Width="200px"
OnSelectedIndexChanged="ddlCOIDEdit_SelectedIndexChanged" EnableViewState="false" NoWrap="true" OnDataBound="ddlCOIDEdit_DataBound">
</telerik:RadComboBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn ItemStyle-Width="225px" UniqueName="ManElementColumn"
HeaderText="Element" HeaderStyle-Width="225px">
<ItemTemplate>
<telerik:RadComboBox ID="ddlElementEdit" runat="server" AutoPostBack="true" Width="200px"
EnableViewState="false" OnSelectedIndexChanged="ddlElementEdit_SelectedIndexChanged" NoWrap="true" OnDataBound="ddlElementEdit_DataBound"
EnableLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true" OnItemsRequested="ddlElementEdit_ItemsRequested">
</telerik:RadComboBox>
</ItemTemplate>
</telerik:GridTemplateColumn>