Hi, I'm using Form Template in my radgrid. I have several combobox that when I change, I wanted to change other combobox datasource. For instance 1st combo is course, 2nd is Level and 3rd is teacher. If i'm going to change my course combo it will change data for my level and teacher combo.
Any inputs would be a great help.. Thanks in advance..
Heres some sample code:
RJ
Any inputs would be a great help.. Thanks in advance..
Heres some sample code:
| <EditFormSettings EditFormType="Template"> |
| <FormTemplate> |
| <table id="tblAddEdit" cellspacing="1" cellpadding="1" width="100%" border="0" runat="server" > |
| <tr> |
| <td > |
| </td> |
| <td> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Course:</td> |
| <td> |
| <asp:DropDownList ID="cboCourse" runat="server" Width="200px" |
| TabIndex="1" AppendDataBoundItems="true"> |
| </asp:DropDownList> |
| <asp:RequiredFieldValidator ID="Requiredfieldvalidator00" Runat="server" Display="Dynamic" ControlToValidate="cboCourse" ErrorMessage="Select Course" /> |
| <asp:label ID="lblCourseID" runat="server" Visible="false" Text='<%# eval("CourseID") %>'></asp:label> |
| </td> |
| </tr> |
| <tr> |
| <td colspan="2" style="height:6px" > |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Level:</td> |
| <td> |
| <asp:DropDownList ID="cboLevel" runat="server" Width="200px" |
| TabIndex="1" AppendDataBoundItems="true"> |
| </asp:DropDownList> |
| <asp:RequiredFieldValidator ID="Requiredfieldvalidator0" Runat="server" Display="Dynamic" ControlToValidate="cboLevel" ErrorMessage="Select Level" /> |
| <asp:label ID="lblLevelId" runat="server" Visible="false" Text='<%# eval("SubjectCode") %>'></asp:label> |
| </td> |
| </tr> |
| <tr> |
| <td colspan="2" style="height:6px" > |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Teacher:</td> |
| <td> |
| <asp:DropDownList ID="cboTeacher" runat="server" Width="200px" |
| TabIndex="2" AppendDataBoundItems="true"> |
| </asp:DropDownList> |
| <asp:RequiredFieldValidator ID="Requiredfieldvalidator1" Runat="server" Display="Dynamic" ControlToValidate="cboTeacher" ErrorMessage="Select Teacher" /> |
| <asp:label ID="lblTeacherID" runat="server" Visible="false" Text='<%# eval("TeacherID") %>'></asp:label> |
| </td> |
| </tr> |
| <tr> |
| <td colspan="2" style="height:6px" > |
| </td> |
| </tr> |
| .... |
| .... |
| .... |
| </FormTemplate> |
RJ