This is a migrated thread and some comments may be shown as answers.

Category Sorting

1 Answer 151 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Gopinath
Top achievements
Rank 1
Gopinath asked on 30 Jun 2017, 03:37 AM

HI ,

I am using property grid with multiple sections. I would like to sort the categories with my preference (not alphabetically or not default). How can i do it?

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 04 Jul 2017, 12:46 PM
Hi Gopinath,

Thank you for your interest in RadPropertyGrid control.

There is not an option to skip the default sorting of the properties. However, you can define your own ordering.

You can try setting OrderIndex property of each property definition. If you define your PropertyDefinitions in XAML, the property can be set directly. In case you are working with auto-generated properties, you can try handling AutoGeneratingPropertyDefinition event and set the OrderIndex there.

You can also check the Order attribute in the DataAnnotation Support example in the desktop WPF Controls Demo application.

Regards,
Dinko
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
PropertyGrid
Asked by
Gopinath
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or