Hello,
I have a radgridview... inside that i have two dropdownlistsin the edititemtemplate. When i want to edit a row. the selected valeu should be the one which was there as a label.
And if i change any value from first dropdownlist. iwant to send its selected value to another dropdownlist...
please tell me how to do this.... reply soon.
. In edit mode
I have a radgridview... inside that i have two dropdownlistsin the edititemtemplate. When i want to edit a row. the selected valeu should be the one which was there as a label.
And if i change any value from first dropdownlist. iwant to send its selected value to another dropdownlist...
please tell me how to do this.... reply soon.
| <telerik:GridTemplateColumn> |
| <ItemTemplate> |
| <asp:Label ID="Label1" runat="server" Text='<%#Bind("Equipment") %>'></asp:Label> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <asp:DropDownList DataSourceID="SqlEquipmentSource" DataTextField="Equipment" DataValueField="ID" |
| ID="ddlEquipmentGrid" runat="server" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged" |
| AutoPostBack="true" SelectedValue='<%#Bind("EquipmentID") %>'> |
| </asp:DropDownList> |
| </EditItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridTemplateColumn> |
| <ItemTemplate> |
| <asp:Label ID="Label2" Text='<%#Bind("Brand") %>' runat="server"></asp:Label> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <asp:DropDownList DataSourceID="SqlBrandSource" |
| DataTextField="Brand" DataValueField="ID" ID="DropDownList3" runat="server" SelectedValue='<%#Bind("BrandID") %>' /> |
| <asp:SqlDataSource ID="SqlBrandSource" runat="server" ConnectionString="<%$ ConnectionStrings:mobily_alexmarConnectionString %>" |
| SelectCommand="SELECT ID, Brand FROM tbl_Sites_EquipmentBrands WHERE (EquipmentID = @EquipmentID)"> |
| <SelectParameters> |
| <asp:ControlParameter ControlID="ddlEquipmentGrid" DefaultValue="0" Name="EquipmentID" |
| PropertyName="SelectedValue" /> |
| </SelectParameters> |
| </asp:SqlDataSource> |
| </EditItemTemplate> |
| </telerik:GridTemplateColumn> |