When I use extend collection and colvis the colvis modal is stuck open

When I use extend collection and colvis the colvis modal is stuck open

Restful Web ServicesRestful Web Services Posts: 202Questions: 49Answers: 2

If I use the following config for my button setup,

"buttons" : [{
            "extend" : 'collection',
            "text" : 'Columns',
            "className" : 'mRightFifteen',
            "buttons" : [{      
                "extend" : 'colvis',
                "text" : 'Pick columns',
                "collectionLayout" : 'fixed five-column',
                "columns" : '1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19'
            }, {
                extend: 'colvisGroup',
                text: 'Show all',
                show: ':hidden'
            }, {
                extend: 'colvisGroup',
                text: 'Hide all',
                hide: ':visible'
            }]
 }]

Then when I select the first 'columns' button followed by the second 'Pick columns' button (so the one within the extend collection) the modal allowing me to pick the columns is stuck on the screen and cannot be closed.

Happy to share a link if that is easier?

Answers

  • allanallan Posts: 61,439Questions: 1Answers: 10,053 Site admin

    Happy to share a link if that is easier?

    Links are always easier :-)

    Allan

  • Restful Web ServicesRestful Web Services Posts: 202Questions: 49Answers: 2

    Sent you a PM

  • allanallan Posts: 61,439Questions: 1Answers: 10,053 Site admin

    Oh I see - thanks for the PM. I hadn't quite clicked that you are using a collection inside a collection. That currently isn't an action that is supported in Buttons - sorry. However, I'll try to find some time to make this work as I like the presentation that you've got for how to display the buttons. I'll post back here when I do.

    Allan

  • Restful Web ServicesRestful Web Services Posts: 202Questions: 49Answers: 2

    HI Allan,

    Many thanks, that would be really helpful.

    Thanks

    Chris

  • Restful Web ServicesRestful Web Services Posts: 202Questions: 49Answers: 2

    Hi Allan,

    Have you had a chance to think about a method to correct my error?

    Thanks

    Chris

  • allanallan Posts: 61,439Questions: 1Answers: 10,053 Site admin

    Nope sorry. Things are rather busy atm :-)

    Allan

  • Restful Web ServicesRestful Web Services Posts: 202Questions: 49Answers: 2

    Hi Allan,

    Is there any way to simply add a 'close' button or icon to the modal window as a temporary solution?

    Thanks

    Chris

  • allanallan Posts: 61,439Questions: 1Answers: 10,053 Site admin

    I think that would probably be more work that just fixing it to be honest. I've just not had time to look into it in detail yet. It wasn't something I had originally planned for, which is why this issue is present. If it is urgent for you, priority support is available.

    Allan

  • allanallan Posts: 61,439Questions: 1Answers: 10,053 Site admin

    Fix committed here and the nightly is rebuilding at the moment - should be done shortly.

    Regards,
    Allan

  • Restful Web ServicesRestful Web Services Posts: 202Questions: 49Answers: 2

    Thanks Allan

This discussion has been closed.