When I use responsive my mRender column turns into [object] [object]

When I use responsive my mRender column turns into [object] [object]

WaldharWaldhar Posts: 3Questions: 1Answers: 0

Hello,

When I use responsive my mRender column turns into [object] [object]
Can someone point me to what I need to do to make it work when it is collapsed to a row?

"aoColumnDefs": [
{ "mData": "Name", "aTargets": [0] },
{ "mData": "Suffix", "aTargets": [1] },
{ "mData": "Sex", "aTargets": [2] },
{ "mData": "Phone", "aTargets": [3] },
{ "mData": "Extension", "aTargets": [4] },
{ "mData": null, "mRender": function (aData, type, full) { return '<a href="#" onclick="alert(\'' + aData.ID + '\');">Process</a>' }, "aTargets": [5]

Thanks!

This question has accepted answers - jump to:

Answers

  • allanallan Posts: 63,381Questions: 1Answers: 10,449 Site admin
    Answer ✓

    I have a feeling this is a bug in Responsive as it reads the raw data for the row, rather than the rendered result - which in retrospect is wrong.

    I'll take a look into it.

    Allan

  • WaldharWaldhar Posts: 3Questions: 1Answers: 0

    Hi Allan,

    What have you found on this issue?

    Thanks!

  • allanallan Posts: 63,381Questions: 1Answers: 10,449 Site admin
    Answer ✓

    Can you update to Responsive 1.0.2 please? It is available on the downloads page.

    Thanks,
    Allan

  • WaldharWaldhar Posts: 3Questions: 1Answers: 0

    I did and it works now. Thank you!

This discussion has been closed.