Nested Dropdown list

I am using a Telerik radGrid with the update form embedded in the gris html itself.

I have two comboboxes in the template.

Is there ANY way to filter the second combobox based on the selection of the first combobox?

Or do I need to populate them with a sub and "FindControl("etc...."
<EditFormSettings InsertCaption="Add Sales Entry Item" CaptionFormatString="Edit ID: {0}"
                            CaptionDataField="id" EditFormType="Template" PopUpSettings-Modal="true">
                            <FormTemplate>
Blah...blah...blah...

<tr>
                                        <td align="right" style="width: 120px; padding: 0px 4px 0px 0px;">
                                            Type
                                        </td>
                                        <td align="left">
                                            <asp:DropDownList ID="histType" runat="server" SelectedValue='<%# Bind("histType") %>'
                                                DataSource='<%# (New string() { "Marketing", "Sales" }) %>' TabIndex="101" AppendDataBoundItems="True">
                                                <asp:ListItem Selected="True" Text="Select" Value=""></asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="width: 120px; padding: 0px 4px 0px 0px;">
                                            Method:
                                        </td>
                                        <td align="left">
                                            <asp:DropDownList ID="histMethod" runat="server" SelectedValue='<%# Bind("histMethod") %>'
                                                DataSource='<%# (New string() { "Mailer", "Email","Inbound Call","Outbound Call","Dialer","Web-PPC","Web-Site","Prospecting" }) %>'
                                                TabIndex="102" AppendDataBoundItems="True">
                                                <asp:ListItem Selected="True" Text="Select" Value=""></asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>

Blah...blah...blah...

Open in new window

Larry Bristersr. DeveloperAsked:
Who is Participating?
 
masterpassCommented:
Or do I need to populate them with a sub and "FindControl("etc...." >>>>>>>>>>>>

You said the answer. you will need to write a sub for selected index changed of the first dropdown, get the data for the second OR filter the data accordingly
0
 
CmdoProg2Commented:
Have you considered using an ajax cascading dropdownlist..

http://www.asp.net/ajax/ajaxcontroltoolkit/samples/CascadingDropDown/CascadingDropDown.aspx
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.