Hello, thanks for looking at my question. I have a popup Add Record window, one of the fields to select is a RadDropDownList that is populated by the Department ID column from the database. The items in the list are not sorted and I would like them sorted in order for the user to find he needed ID faster.
The RadDropDownList is within an EditItemTemplate that is within a GridTemplateColumn.
<telerik:GridTemplateColumn HeaderText="DepartmentID" ItemStyle-Width="240px">
<ItemTemplate>
<%#DataBinder.Eval(Container.DataItem, "DepartmentID")%>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadDropDownList runat="server" ID="RadDropDownList1" DataTextField="DepartmentID"
DataValueField="DepartmentID" DataSourceID="SqlDataSource1" SelectedValue='<%#Bind("DepartmentID")%>'>
</telerik:RadDropDownList>
</EditItemTemplate>
</telerik:GridTemplateColumn>
I have tried AllowSorting, SortExpression on the RadDropDownList and they did not work.
What am I missing in my code?
Thank you, Dale