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 Services
Posts: 202Questions: 49Answers: 2
in Buttons
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?
This discussion has been closed.
Answers
Links are always easier :-)
Allan
Sent you a PM
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
HI Allan,
Many thanks, that would be really helpful.
Thanks
Chris
Hi Allan,
Have you had a chance to think about a method to correct my error?
Thanks
Chris
Nope sorry. Things are rather busy atm :-)
Allan
Hi Allan,
Is there any way to simply add a 'close' button or icon to the modal window as a temporary solution?
Thanks
Chris
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
Fix committed here and the nightly is rebuilding at the moment - should be done shortly.
Regards,
Allan
Thanks Allan