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
Hello Wim,
Thank you for your feedback. We will consider your idea for the future, but I cannot promise any time frame for its implementation at the moment.
Hi Dennis,
In the xafml is it already possible to set the Index, so the idea is already implemented. However when I set the Index, it doesnt order the values based on the Index which is set.
So back to my example:
When I have the values with the set index:
- One (Set Index 3)
- Two (Set Index 0)
- Three (Set Index 1)
- Four (Set Index 2)
It displays in order One, Two, Three, Four instead of Two, Three, Four, One
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
You are always welcome, Wim!
News, tips & tricks and other interesting information about DevExpress Application Framework and ORM