Table Component Sort -- Ordering Contents Wrong #1751
-
Hi all, I am working on a table that has a single-column sort. However, it does not sort the contents properly. I can click the header to re-sort the contents but they are still sorted out of order.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
I am guessing because the data is loaded after the column, its not recognizing the data until its too late. My solution is to SQL request the data in alpha order before populating the table so that it matches the tables expected sort order. |
Beta Was this translation helpful? Give feedback.
-
The component sorts table on the second field with a full cell value Examples: |
Beta Was this translation helpful? Give feedback.
-
Also component removes any inline styles, classes, and other attributes for a table cell (
.table tr td {
...
} |
Beta Was this translation helpful? Give feedback.
Also component removes any inline styles, classes, and other attributes for a table cell (
td
). If you need to define additional styles for a table cell, you can:data-cls-body-cell
,data-cls-cell-wrapper
onDrawCell
to rewrite the same table cell as you need