I have a dropdownlist in EditItemTemplate / insertItemTEmplate and in the codebehind file I am trying to bind it to a datasource.
could you please suggest how to bind it to a data source and in which event i should do it in codebehind file?
here is my radtreelist :
<telerik:TreeListTemplateColumn DataField="WorkShopType" UniqueName="WorkShopType" HeaderText="WorkShopType" >
<ItemTemplate>
<%# Eval("WorkShopType")%></ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="ddlWorkShopTypeEdit" runat="server" />
</EditItemTemplate>
<InsertItemTemplate>
<asp:DropDownList ID="ddlWorkShopTypeInsert" runat="server"/>
</asp:RequiredFieldValidator></InsertItemTemplate></telerik:TreeListTemplateColumn>
could you please suggest how to bind it to a data source and in which event i should do it in codebehind file?
here is my radtreelist :
<telerik:TreeListTemplateColumn DataField="WorkShopType" UniqueName="WorkShopType" HeaderText="WorkShopType" >
<ItemTemplate>
<%# Eval("WorkShopType")%></ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="ddlWorkShopTypeEdit" runat="server" />
</EditItemTemplate>
<InsertItemTemplate>
<asp:DropDownList ID="ddlWorkShopTypeInsert" runat="server"/>
</asp:RequiredFieldValidator></InsertItemTemplate></telerik:TreeListTemplateColumn>