Hi All,
In my scenario, I have one standard enum like status with the elements "Rejected" and "Approved". and the corresponding properties UseEnumValue as "False" and IsExtensbile as "True".
Now we cannot see the Enum value property for the Enum elements in Enum elements properties. But In SQL it will be stored like Rejected as 0 and Approved as 1.
So if am sorting (ascending order) the grid based on this enum fields, first the Rejected records will be show then the Approved records will be show.
Now in my scenario I need to add another new element "Cancelled" after extend the status enum with the elements "Rejected" and "Approved" using Extension.
I added the Cancelled enum in the Extension enum status.
Now in backend (SQL), it will be stored like this,
Rejected as 0
Approved as 1
Cancelled as 2.
So now the sorting will behave like first the Rejected records will be show, then Approved then Cancelled records (Rejected -> Approved -> Cancelled).
But i need to add the element Cancelled in between Rejected and Approved. Drag and drop the Cancelled element in between the Rejected and Approved will works fine.
But the sorting does not happens like Rejected first then Cancelled then Approved records (Rejected -> Cancelled -> Approved).
Because the sorting works based on the enums values. Even if am drag and drop the enum element Cancelled in between Rejected and Approved the enum value will not change.
So is there any other solution to achieve this sorting???
Thanks in advance,
K. Vigneshvaran.