Thanks Bart...<br><br>But using renderTo, I got that error:<br><br>Error: 'GeoExt.MapPanel.guess().layers' is null or not an object<br>Method : onRender, GeoExt.LegendPanel<br><br>Paul<br><br><div class="gmail_quote">
On Tue, Jul 6, 2010 at 10:27 AM, Bart van den Eijnden (OSGIS) <span dir="ltr"><<a href="mailto:bartvde@osgis.nl">bartvde@osgis.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Use renderTo instead of contentEl.<br>
<br>
Best regards,<br>
<font color="#888888">Bart<br>
</font><div><div></div><div class="h5"><br>
> Hello guys!<br>
><br>
> My Legend :<br>
><br>
> var _legendPanel = new GeoExt.LegendPanel({<br>
> defaults: {<br>
> style: 'padding:5px',<br>
> imageFormat: "image/png"<br>
> },<br>
> title: 'Legenda',<br>
> bodyStyle: 'padding:5px',<br>
> width: 350,<br>
> autoScroll: true<br>
> });<br>
><br>
> I´m able to add that to my Viewport... But I want to add to a separated<br>
> Div...<br>
> I tried to add :<br>
> contentEl:"divDialog"<br>
><br>
> But It does not work... Any idea?<br>
><br>
> Thanks<br>
</div></div><div><div></div><div class="h5">> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@geoext.org">Users@geoext.org</a><br>
> <a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
<br>
<br>
</div></div></blockquote></div><br>