rowCallback + responsive

rowCallback + responsive

tardigradtardigrad Posts: 9Questions: 4Answers: 0
edited February 2017 in Free community support

Hello,

I'm trying to use rowCallback https://datatables.net/reference/option/rowCallback
and responsive collapsible columns https://datatables.net/extensions/responsive/
at the same time.

The problem is that when a column collapses (because the screen is not wide enough), the displayed value is the original value, not the value that was defined in the fnRowCallback like this:

$('td:eq(1)', nRow).html( '<a href="'+json.url+'" >link</a>' );

Another issue is that you cannot sort on a column filled like this.

Anyone knows how to deal with that?
How do you really add data to your table with a callback (ajax request in my case)?

This discussion has been closed.