I am having issues with the RadListBox not sorting no idea why. I want to sort by name. I have something like this
protected void Page_Load(object sender, EventArgs e)
{
BindItems();
}
protected void BindItems()
{
lstItems.Items.Clear();
lstItems.DataSource = ItemsAdmin.GetItems();
lstItems.DataTextField = "Name";
lstItems.DataValueField = "ItemID";
lstItems.Sort = RadListBoxSort.Ascending;
lstItems.SortItems();
lstItems.DataBind();
}
Thank you
Why don’t you sort the data source by yourself, e.g:
Update (re your comment): I’m not familiar with DataTable. Maybe you have to create a DataView then: