Custom data type
Custom data type
I'm assuming this should be able to be done with type detection, but can't work it out from the documentation.
I have a column that has a priority that can be High, Medium, or Low. I therefore want to define a custom data type to sort in the correct manner.
has anyone done and this? any example code on how to do this?
Michael
I have a column that has a priority that can be High, Medium, or Low. I therefore want to define a custom data type to sort in the correct manner.
has anyone done and this? any example code on how to do this?
Michael
This discussion has been closed.
Replies
Allan
Michael
Sorry for the delay! I've put up an example of how it might work on the sorting plug-ins page: http://datatables.net/plug-ins/sorting#Priority . It should be fairly easy to change the words or the order if you want.
Regards,
Allan