ColVis problem during datatables created in javascript

ColVis problem during datatables created in javascript

itajackassitajackass Posts: 162Questions: 48Answers: 3

I've a datatable created only by javascript. (I've to create in this way... json data rows also is created in this way due to program limitation)

Construction work well, but there's a problem using ColVis:

If I hide, for example "STATO" column, then I want to show again...it pulls up at the end of the table!

This is my fiddle: http://jsfiddle.net/bbLjzspf/4042/

Replies

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @itajackass ,

    Thanks for the fiddle. I just tried it, but it seems to be behaving for me. I...

    1. clicked on "click me to populate"
    2. clicked on the button, and chose "Stato"
    3. stato is hidden as expected
    4. click on the button, and chose "Stato" again
    5. Stato returns as the first column on the left

    Is this what you would expect? Or am I missing a step?

    Cheers,

    Colin

  • itajackassitajackass Posts: 162Questions: 48Answers: 3

    Hi, thanks for the reply. "STATO" header back to first position...but respective rows data get at the ends...

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    titolo_colonna['visible'] = "visible";

    This isn't valid. The columns.visible option must be a boolean value (true or false).

    Allan

  • itajackassitajackass Posts: 162Questions: 48Answers: 3

    Thank you!!! Problem solved!!

This discussion has been closed.