Hi Syncfusion team,
I have a grid with a enum dropdownlist column . I need to show a custom display name instead of the int or string value of the enum when the datagrid is loaded, when the cell is edited and when the changes are saved.
Right now, I was able to display the custom name when the grid is loaded and when it's saved, but I'm not able to show the custom name when the cell has been edited but not saved yet.
When the grid is loaded:
When the dropdown is clicked:
When the dropdown value is changed:
This is the wrong case that I'm trying to fix. There should be displayed 21% and not _21p.
When the grid is updated:
And the code for the Enum:
The code for the grid
Thanks.
Hi, thanks for the reply, but that solution doesn't resolve my problem.
I'm able to show the text value of the enums in the dropdown list, but thats not an option here because the client want to see white spaces or values starting with numbers -something that enums are not able. And not the
underscore
'_' character.
Thats the reason I used the display attribute and not the enum text value. Right now, I'm able to display the custom name when the grid is loaded and when it's saved after any change, but I'm not able to show that custom name when the cell has been edited but not saved yet.
Sorry if I didn't explain myself properly the first time, english isn't my first language.
Again, thanks for trying to help me.
Antonio