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 PaschalisPliachas Paschalis Posts: 62Questions: 12Answers: 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

Answers

  • allanallan Posts: 61,776Questions: 1Answers: 10,112 Site admin

    Remove visible: false,. In Responsive 2, that means it will be hidden in the Responsive view as well.

    Allan

  • Pliachas PaschalisPliachas Paschalis Posts: 62Questions: 12Answers: 1

    Thanks for your response. I removed the

    visible: false,
    

    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.

  • kthorngrenkthorngren Posts: 20,346Questions: 26Answers: 4,776

    Are you looking to use responsive to hide columns or something like this example?

    https://datatables.net/examples/api/row_details.html

    Kevin

  • Pliachas PaschalisPliachas Paschalis Posts: 62Questions: 12Answers: 1

    I found that and i found also responsive. So i didn't took a decision to choose what could do the job best.

  • Pliachas PaschalisPliachas Paschalis Posts: 62Questions: 12Answers: 1

    Well it's working using this

    https://datatables.net/examples/api/row_details.html
    
This discussion has been closed.