I would like to not render the columnChooser in the feature chooser.Is there a columnChooserRenderFC property to set to false?How can I accomplish this keeping the hide/show single column feature?
Hello Felipe,
Thank you for posting in our community.
At this point we do not provide a way to exclude Hiding feature from the Feature chooser.
The idea behind the Feature chooser is to provide a convenient way for user interactions with grid`s features when more features are enabled on the grid at a time(especially features which render an additional content in the grid`s header such as Hiding, Sorting, Filtering etc.). In this scenario all features are packed within the feature chooser and they can not be used the same way as a single feature is enabled. More information regarding configuration of the column chooser can be found in this topic.
Please let me know fi you have aby additional questions regarding this matter.
Hi Vasya,Thanks for your reply.Currently, I'm rendering a custom column chooser outside the grid. That's why I didn't want to show the default one.Anyway, I found a way to accomplish what I was looking for. So if anyone is in the same situation, you just need to add the following lines in the rendered grid event:
$(`#${this.gridId}_container`).on('DOMNodeInserted', 'li[title="Column Chooser"]', (event) => { $(event.target).remove(); });
$(`#${this.gridId}_container`).on('DOMNodeInserted', 'span:contains("Column Chooser")', (event) => { $(event.target).closest('li').remove(); });
Thank you for sharing your approach with our community. I believe that this information may be helpful if anyone encounters a similar situation.
Thank you for using Infragistics components.