How to define custom Order for Groups in data table
How to define custom Order for Groups in data table
Example: A, D, E are the groups under which 10 rows present for each group. Now ordering of Data table should be D group data then A group data and finally E group data. How to Achieve this. Please Anyone help me here,
This discussion has been closed.
Answers
You can use the
orderoption to set the initial order of the table.Kevin
@kthorngren , Assume this is the grouped table looks like table avaible in this https://datatables.net/examples/advanced_init/row_grouping.html, I want first group to display is London then Newyork group data and then Edinburg. How to achieve this
You might want to look at the RowGroup Extension. I think it started from this example and grew into a full solution.
Sorry, misunderstood your original question. You will use Orthogonal Data to define a different ordering. You can do some sort of mapping that is assigned to the
sortoperation. For example London=1, Now York=2, Edinburg=3. Then sorting of that column will occur on the numbers.Kevin