Is it possible to programmatically change the default sorting for fields that are added through a RadPivotFieldList? Currently added fields have default sorting of Ascending (A to Z), but I would like to have no sorting.
2 Answers, 1 is accepted
answered on 05 Jun 2014, 11:00 AM
What I can suggest you would be to subscribe to the PrepareDescriptionForField event of the DataSourceProvider and set the SortOrder of the new Description to None in the event handler the following way:
if (e.DescriptionType == DataProviderDescriptionType.Group)
(e.Description as PropertyGroupDescriptionBase).SortOrder = SortOrder.None;
Hope this helps.
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.