Hiding all columns performance issue

Hiding all columns performance issue

theAnimalixtheAnimalix Posts: 35Questions: 12Answers: 2
edited May 2016 in Free community support

Hey,

I'm trying to hide/show all DT columns (around 30) via a button click with the code bellow:

            {
                extend: 'colvisGroup',
                text: 'Show all',
                className: 'buttons-show-cols',
                show: '*'
            },
            {
                extend: 'colvisGroup',
                text: 'Show none',
                className: 'buttons-hide-cols',
                hide: '*'
            }

For some reason when button is clicked browser freezes up for around 5 seconds before the columns are shown or hidden. Is this a normal behavior and if not, is there a way to speed it up?

Answers

  • allanallan Posts: 63,791Questions: 1Answers: 10,513 Site admin

    Could you try the nightly version of DataTables please. This performance issue should already have been addressed there.

    Thanks,
    Allan

  • theAnimalixtheAnimalix Posts: 35Questions: 12Answers: 2

    Hey Allan,

    Thanks, will try it (didn't think about trying with that one). I guess the nightly version is not available via bower? Any ETA for release?

  • allanallan Posts: 63,791Questions: 1Answers: 10,513 Site admin

    I guess the nightly version is not available via bower?

    It isn't a tagged release, but I think you can grab a specific version from bower using the commit hash. This is the distribution repo you could try using the latest hash from there.

    ETA was planned for today, but a ton of support requests have come in, so it will be bumped to next week I'm afraid.

    Allan

This discussion has been closed.