Welcome to Kap Lab Store

Topic "Show/hide expand/collapse button in group renderers according to data"


6 Item(s)

per page
Hi all,
Anyone knows how to show or hide the expand/collapse button in group renderers according to their data?
I've seen 'GenericGroup' has a '_groupExpandCollapseButton' property referring to a 'GroupExpandControl' but it is private... Any suggestion? Thanks in advance.
Posted : 13 February 2014 13:18
Hello,
You can use the style showGroupExpandCollapseButton to show/hide the expand/collapse button in groups. To hide the button you can set the style to false like
visualizer.setStyle('showGroupExpandCollapseButton',false);
 
I wish that it helps you.

Regards,
Dhaou

Posted : 13 February 2014 15:47
Thank you,
but this apply to all groups elements...
What I want to do is to show or hide according to data (some groups should be expandable and some others not).
Any idea?
Posted : 13 February 2014 15:55
In this case you can use the property forceNoExpandGroupButton on the group that you want to hide/show its expand/collapse button.
So if we assume that myGroup is the group that you wish hide its button you can do like this
myGroup.forceNoExpandGroupButton = true;
 
Regards,
Dhaou
Posted : 13 February 2014 16:08
Exactly what I was looking for!
Thank you very much.
Posted : 13 February 2014 16:12
Very cool, do not hesitate to post on the forum or contact us for further information.

Posted : 13 February 2014 16:18

6 Item(s)

per page