Category Sorting

2 posts, 0 answers
  1. Gopinath
    Gopinath avatar
    1 posts
    Member since:
    Jun 2017

    Posted 29 Jun Link to this post

    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?

  2. Dinko
    Admin
    Dinko avatar
    415 posts

    Posted 04 Jul Link to this post

    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.
Back to Top