Hello
How do I access a Dropdown List in "Edit" ItemCommand mode? I need to do something with the control but I am having problems finding it.
I am trying to remove the blank listitem from dropdown once it goes into Edit mode. The blank element is there for the "Add New Record" "bug when bound to a datasource".
Thanks
How do I access a Dropdown List in "Edit" ItemCommand mode? I need to do something with the control but I am having problems finding it.
| <telerik:GridTemplateColumn HeaderText="Group" UniqueName="tcGroup" Visible="False"> | |
| <EditItemTemplate> | |
| <asp:DropDownList ID="ddlGroupID" runat="server" DataSourceID="sdsVL_Groups" DataTextField="Name" | |
| DataValueField="GroupID" SelectedValue='<%# Bind("GroupID_FK") %>' AppendDataBoundItems="True"> | |
| <asp:ListItem></asp:ListItem> | |
| </asp:DropDownList> | |
| </EditItemTemplate> | |
| </telerik:GridTemplateColumn> |
| Private Sub rgResource_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rgResource.ItemCommand | |
| Select Case e.CommandName | |
| Case "Edit" | |
| ' REMOVE THE BLANK LISTITEM FROM THE DROPDOWLIST | |
| End Select |
I am trying to remove the blank listitem from dropdown once it goes into Edit mode. The blank element is there for the "Add New Record" "bug when bound to a datasource".
Thanks