Can't show plus icon to show a hidden column as child
Can't show plus icon to show a hidden column as child
Pliachas Paschalis
Posts: 69Questions: 13Answers: 1
following conversations i found in blog, and using this one:
http://live.datatables.net/wozojore/738/edit
i tried to make a page:
http://mps-roditi-com.stackstaging.com/announcements/ForTest.html
showing only two columns instead of three. The idea is to show the third one using plus sign as a child.
i used
responsive: true,
ajax: '../mpsDatatables/php/table.announcements.php',
columns: [{
"data": "ptitle"
},
{
"data": "pmessage",
visible: false,
className: 'none'
},
{
"data": "pdate"
}
],
but it's not working.
Am i missing something?
Thanks in advance
This discussion has been closed.
Answers
Remove
visible: false,
. In Responsive 2, that means it will be hidden in the Responsive view as well.Allan
Thanks for your response. I removed the
i see now the 'pmessage' column, but the idea was to use the plus sign to work as expansion, so the user should see the 'ptitle' and 'pdate' column in the table and using the plus sign he could see the 'pmessage' column as a new row, because this column had a lot of string.
Are you looking to use responsive to hide columns or something like this example?
https://datatables.net/examples/api/row_details.html
Kevin
I found that and i found also responsive. So i didn't took a decision to choose what could do the job best.
Well it's working using this