Hello
I have a DropDownList (DDL) which is also databound to a collection of data inside an EditItemTemplate.
When I click Add New Record, I need to set the DDL selectedValue to specifically. I have read through http://www.telerik.com/help/aspnet-ajax/grdinsertingvaluesusercontrolformtemplate.html but I am having problems finding the DDL control progmatically. Am I doing this the wrong way round or am I missing something in code please?
Thank you
R
I have a DropDownList (DDL) which is also databound to a collection of data inside an EditItemTemplate.
When I click Add New Record, I need to set the DDL selectedValue to specifically. I have read through http://www.telerik.com/help/aspnet-ajax/grdinsertingvaluesusercontrolformtemplate.html but I am having problems finding the DDL control progmatically. Am I doing this the wrong way round or am I missing something in code please?
Thank you
R
<telerik:GridTemplateColumn HeaderText="Group" UniqueName="tcGroup">
<EditItemTemplate>
<asp:DropDownList ID="ddlGroupID" runat="server" DataSourceID="sdsVL_Groups" DataTextField="GroupID"
DataValueField="Name" SelectedValue='<%# Bind("GroupID_FK") %>' AppendDataBoundItems="true" >
<asp:ListItem Text ="" Value=""></asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
</telerik:GridTemplateColumn>