Is there any way currently through the Api to hook into the popover when clicking the little settings icon on each column? I'd like to add some features that we're adding onto the grid, like exporting into that menu system.
Hi futureguis,
Thank you for posting in our forums! Currently we do not have a functionality like this built in our grid. I can only offer you a workaround that will add a custom icon in the feature chooser popover which will execute your custom logic. I’m using private method for this purpose and I can’t guarantee that it will work for you in every case. Basically I’m forcing the grid to add the additional icon in the feature chooser for each column separately by handling headerCellRendered event. I’m attaching a sample page that demonstrates the workaround.
Please let me know if you have any further questions regarding this!
Kind regards, Petko Zhekov Software Engineer
Cool, that works nicely. Now if you can help a bit more please, so I don't spend hours in the depths of the grid js, is there a way to get a nested menu like the "Move To" group?
Thanks,
I updated the sample and added another custom icon that will render a dropdown. The change that I made is to add type: ‘dropdown’ to the configuration of the custom icon and a function to get the DOM structure of the dropdown. And again this is a custom implementation for your specific case. I can’t guarantee that it will work in every case.
Let me know if you have any other questions!
Thanks so much, that's exactly what I want.
Hello Stephen,
I am just following up to check if any additional questions have arisen. If so, feel free to contact us again.