Dependant combos on grid
Is possible to have dependant combos on a grid that are bound server side?
What I want to happen is somehow rebind the DataSource when another combo box in the grid changes.
So for example Combo A was Continents and Combo B was counties I would want to filter the country list (Combo B) depending on what is selected in the continents (Combo A). I can’t see any server events that fire upon selecting a combo within a grid.
Note that to further complicate things my columns are dynamically created.
Any help would be much appreciated!!!
Below is a shortened extract of my code:-
protected void uxResults_ItemDataBound(object sender, GridItemEventArgs e)
{
GridDropDownListColumnEditor
combo = null;
editMan = editedItem.EditManager;
GridDataItem item = (GridDataItem)e.Item;
if (e.Item is GridEditableItem )
{
if ((e.Item as GridEditableItem).IsInEditMode)
{
combo = editMan.GetColumnEditor(dr["Column Name"].ToString()) as GridDropDownListColumnEditor;
combo.DataSource = ApplyFilter(item, combo, dr, ds);
combo.DataBind();
}
}
}
| <telerik:GridCheckBoxColumn DataField="Dhcp" HeaderText="DHCP"></telerik:GridCheckBoxColumn> |
| <telerik:GridBoundColumn DataField="Address" HeaderText="Address"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Mask" HeaderText="Mask" ></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Gateway" HeaderText="Gateway" ></telerik:GridBoundColumn> |
| <telerik:GridCheckBoxColumn DataField="Dhcp" HeaderText="DHCP"></telerik:GridCheckBoxColumn> |
| <telerik:GridBoundColumn DataField="Address" HeaderText="Address"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Mask" HeaderText="Mask" ></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Gateway" HeaderText="Gateway" ></telerik:GridBoundColumn> |
Thanks,
Steve

| <telerik:RadScheduler runat="server" ID="RadScheduler1" |
| Width="750px" |
| Height="650px" |
| SelectedView="MonthView" |
| FirstDayOfWeek="Monday" |
| LastDayOfWeek="Friday" |
| SelectedDate="2008-06-01" |
| StartInsertingInAdvancedForm="false" |
| EnableCustomAttributeEditing="true" |
| ProviderName="ReadOnlySchedulerData" |
| OnAppointmentDataBound="RadScheduler1_AppointmentDataBound"> |
| <InlineEditTemplate> |
| <div id="InlineEditTemplate" class=""> |
| <asp:TextBox ID="TitleTextBox" runat="server" Text='<%# Bind("Subject") %>' Width="90%" TextMode="MultiLine" Height="20px"></asp:TextBox> |
| <asp:LinkButton ID="InsertButton" runat="server" CommandName="Update" Text="Cancel"></asp:LinkButton> |
| <asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel"></asp:LinkButton> |
| <asp:LinkButton ID="InsertMoreButton" runat="server" CommandName="More" CssClass="rsAdvancedEditLink">Advanced</asp:LinkButton> |
| </div> |
| </InlineEditTemplate> |
| </telerik:RadScheduler> |