Sorting using html5 data value and some other questions

Sorting using html5 data value and some other questions

kulkarni_ashkulkarni_ash Posts: 35Questions: 8Answers: 0

Hi
I am using datatables 1.9, i have few questions
1. I want to sort table for numeric fields where i am displaying negatives numbers in between braces for example -129.43 is displayed as (129.43) , so the sorting is not working, so i am think of saving the actual value using data value, can i sort on this data value? or may be have hidden column with actual value and then sort on this actual hidden value column.
2. I have to use data tables on about 30 different pages, each page has little variations on using data tables, for example on page 1 i want default sort on column 1, while on another page i want to sort on column 2, can i do this kind of things after initializing data tables, i want to have all datatables look same so want to initialize using common code, but add customization later.

Answers

  • allanallan Posts: 63,813Questions: 1Answers: 10,517 Site admin

    I would strongly recommend you update to 1.10. 1.9 is legacy and no longer supported.

    HTML5 attribute sorting is not available in 1.9 for example.

    Allan

This discussion has been closed.