sort field chooser for radpivotgrid

1 Answer 57 Views
PivotGrid and PivotFieldList
Ada
Top achievements
Rank 1
Ada asked on 27 Jul 2023, 10:38 PM

I know how to sort column chooser for RadGridview:

e.ColumnChooser.SortOrder = RadSortOrder.Ascending

is there a way to sort Field Chooser for RadPivotGrid too?

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 01 Aug 2023, 10:18 AM

Hello Ada,

Thank you for writing.

The RadPivotFieldList internally hosts a RadTreeView control responsible for displaying the logical ContainerNodes objects.

In order to have the items sorted, you would need to define a SortOrder to the RadPivotFieldList.FieldsControl object. A suitable place to perform this task is the handler of the RadPivotGrid.UpdateCompleted event: 

private void radPivotGrid1_UpdateCompleted(object sender, EventArgs e)
{
    this.radPivotFieldList1.FieldsControl.SortOrder = System.Windows.Forms.SortOrder.Ascending;
}

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
PivotGrid and PivotFieldList
Asked by
Ada
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or