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

Mike Adair madair at dmsolutions.ca
Fri Feb 12 12:35:11 EST 2010


Ah sorry, I forgot the Legend widget is coded with some renderer 
subclasses.  Try myLegend.renderer.expandAll()

Mike

Rodolfo Moreno wrote:
> Thanks Mike for your quickly answer.
> I tried your suggestion:
> var myLegend = Fusion.getWidgetById('Legend');
> myLedend.expandAll();
>
> but this raises an error: expandAll() is not supported by this object.
> how I must call to "expandAll()" function?
> I think that first I must access to folder containing the layer information
> I am interested in, but I don't how to do it.
>
> thanks in advance.
>
> -----
> 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