Ticket Q492313
Visible to All Users

Core - Make it possible to reorder enumeration values by setting the Index property under the Localization | Enums node

created 12 years ago

Hello,

We have an Enum with some elements. Example:
- One
- Two
- Three
- Four

Now I want element One on the first place, I set in the xafml the index for this element to the last one. However, it doesnt order this items.
I want to suggest to fix this, especially because while an application grows, new elements can be added but should in the presentation have an other ordering.

Kind regards

Show previous comments (2)
Dennis Garavsky (DevExpress) 12 years ago

    Yes, I know. My point is that there is no currently any code in our editors and EnumDescriptor classes that takes this index into account, because it was not planned from the beginning. This scenario makes sense, though. So this may be a candidate for a future implementation in our framework.
    For now, I can only advise you customize the EnumPropertyEditor and ASPxEnumPropertyEditor classes as shown at Access Editor Settings or rather create their descendants, where you will take indices into account. I hope it is now clearer.

      Hi Dennis,
      Much clear now, I thought we had some miscommunication :)
      I will take a look at your advice, thanks so far

      Dennis Garavsky (DevExpress) 12 years ago

        Answers approved by DevExpress Support

        created 12 years ago (modified 12 years ago)

        We have implemented the functionality described in this ticket. It will be included in our next update(s).

        Please check back and leave a comment to this response to let us know whether or not this solution addresses your concerns.

        Additional information:

        Starting with version 13.2, you will be able to configure the order of enumeration items in the Model Editor under the Localization | Enums | <Your Enumeration> node by setting the Index property as shown in the attached screenshot.
        Thanks,
        Dennis

          Comments (1)

            Great news Dennis!

            Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

            Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.