-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datagrid: Custom Sorting for DataGrid with Date and Icon #8875
Comments
@infor-mahesh we might need an example for this to get it right. Is the data really date format (ISO String ect?) How did you implement the column? |
Hi @tmcconechy , If we use The problem we are facing is that, since this is appended and not using the default formatters, we are encountering issues with sorting. Therefore, we need a formatter that can handle both the date and icon so that sorting functions correctly without any issues. Thank you. |
@infor-mahesh i sort of get it but it would help if you can provide a basic example (even if it doesnt work yet). So we know what data ect to expect |
We need an option to display a date along with an icon, where the icon's name can be passed dynamically. This component should be capable of sorting based on the provided date. The key functionality is to ensure that the component handles both the display of the icon and the date, while also sorting the entries by date. |
@infor-mahesh i still dont quite get it. Can you post some code that shows how you are setting up that column (the custom formatter logic/column definition ect?) |
This is the formater which we are sending it to datagrid formatter attribute
|
Is your feature request related to a problem or use case? Please describe.
The current implementation of the DataGrid doesn't includes cells that display both a date and an icon sorting. The default sorting mechanism is set to sort by date, but the sorting results are inaccurate, likely due to the presence of the icon alongside the date. This affects the usability and accuracy of the data presentation in the DataGrid.
Describe the solution you'd like
I require the implementation of a custom sorting mechanism that accurately sorts the DataGrid by date while ignoring the icons.
Additional context
The text was updated successfully, but these errors were encountered: