Adding fields (Select or responsive) breaks sorting
Issue #35
closed
Hey,
I love the package you made, but recently ran into an issue. I have two extra fields, defined client-side, to add a checkbox and to make the DT responsive. This breaks sorting however, as the two additional fields are not defined in columns on my view.
Do you have any idea if there's something I can do to resolve this on my end?
Many thanks in advance, Robrecht
Comments (3)
-
repo owner -
reporter That appears to have fixed it - thanks! :)
-
repo owner - changed status to closed
- Log in to comment
Hard to say not seeing the code but in general if you want to add some columns that shouldn't be used for sorting then you can just add blank values for these in columns definition:
and on the frontent side in the datatables definition just set these columns as not orderable, eg: