[mapguide-users] How to expand legend programatically in Fusion

Mike Adair madair at dmsolutions.ca
Fri Feb 12 09:55:49 EST 2010


If you can get a pointer to the Legend widget (with 
Fusion.getWidgetById(legendId)), there are methods on that widget:
- expandAll
- collapseAll
- expandBranch
- collapseBranch

These are alos called by the legend's context menu to expand and 
collapse the tree.

Mike

Rodolfo Moreno wrote:
> Hi all, I was trying expand the legend programatically by putting the
> following code in Mg server side:
> mylayer.GetExpandLegend(); but with no success.
> Is there something additional that I need to put in the client side(in
> fusion side)?
>
> Regards,
>
>
> -----
> Rodolfo Moreno
> CivilEng
>
>   

-- 
   Michael Adair
   Senior Software Architect
   DM Solutions Group Inc.

   Office: (613) 565-5056 x26
   madair at dmsolutions.ca
   http://www.dmsolutions.ca
   http://research.dmsolutions.ca




More information about the mapguide-users mailing list