Hello,
I use collapsible column groups.Is it possible to trigger an event when expanding or collapsing the column group.In fact, I have 3 grids and in order to keep the alignment of the columns, I would like to be able to resize the columns of grid 2 and 3 when I click to expand or collapse the column of grid 1.
I attach an animated gif to make it easier to understand my request
Best regards,
Philippe DUFEIL
Hello Philippe,
Thank you for posting to Infragistics Community!
I have been looking into your question and determined that detecting when a column group is expanded/collapsed could easily be detected by templating the igxCollapsibleIndicator for each column group and handling the click event of the icon, or whatever the templated element is. If you would like to keep the default look, the template can contain the “original” IgxIcons ‘expand_more’/’chevron_right’ as demonstrated in this sample I created.
As you will see there, you can also pass the “column” parameter to the handler, with which you can execute your specific resizing logic depending on the currently expanded/collapsed column group. Additionally, please note, that as the click handler is fired before the group is actually expanded/collapsed, the opposite value of columnGroup.expanded has to be used (!columnGroup.expanded).
Please, check out this suggestion on your side and let me know if it helps.
Best regards,Bozhidara PachilovaAssociate Software Developer
Hi Bozhidara Pachilova,
How to create dynamic igx-column-headers with igx-columns?
Please suggest me.
Regards,
R.Madhavan
I checked out your suggestion on my side. It works.
Best regards