Custom render column

Custom render column

crawln45crawln45 Posts: 8Questions: 0Answers: 0
edited January 2014 in DataTables 1.9
I'm really new to the whole ajax and datatables. And i'm sure there's something somewhere I'm just not seeing it. I'm wanting to make a column of epoch time stamps to render on datatables as a date not an epoch time. Any help with this would be appreciated. Mainly because I can sort epoch time for dates easier than date format 'Jun 15 2013' .

Replies

  • allanallan Posts: 63,368Questions: 1Answers: 10,449 Site admin
    Sounds like you are looking for 'orthogonal data' in DataTables terminology: http://datatables.net/blog/Orthogonal_Data . DataTables 1.9.4 can use mRender to do orthogonal data, while 1.10 can also use HTML5 data attributes (1.10 is pre-beta).

    Allan
This discussion has been closed.