Sort a Enum value based on description #7035
-
public enum UploadStatus These are my enumerations; they are stored as integers in the database. I want to perform sorting based on the description within the "process" method. Is it feasible to handle the sorting directly in the "process" method? @VictorTomaili @volkanceylan please suggest. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
To order items you can create an UploadStatusEnumEditor, you need to inherit from EnumEditor and sort the items in the |
Beta Was this translation helpful? Give feedback.
To override the updateItems() function of the EnumEditor, you need to use prototype overriding in TypeScript. You can override this function in the InitScript.ts file.