Changing the sort order
and calling the SortItems
() method will have an effect only after the RadListBox
control have its items available. Since those items are internally created and added to the Items collection of the RadListBox
by the RadPivotGrid
, the proper event for sorting the items will be the server-side OnPreRender
sender, EventArgs e)
RadPivotGrid1.FilterWindow.SetBox.Sort = RadListBoxSort.Descending;
Additionally, you do not have to call the DataBind
() method after calling the SortItems
Please let me know if the above works on your end too.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.