Hi to All,<br><br> I have some problem with layers tree.<br> <br><br> Ext.apply(this, config, {<br> rootVisible: false<br> , useArrows: true<br> , enableDD: true<br> , root: new GeoExt.tree.LayerContainer({<br>
text: 'Map Layers'<br> , layerStore: config.layers<br> , leaf: false<br> , expanded: true<br> })<br> });<br> <br> The main problem with this is when I reorder (With dragging & dropping ) tree it changes checkbox to radio button for base layer.<br>
<br>Question 1) Is there any way to make checkbox for baselayer?<br>Question 2) Why it behaves like this.?<br><br><br> Sorry for my english.<br> I am new to Geoext.<br><br><br> Thank You,<br>Sandip Jadhav<br>
<br><br><div class="gmail_quote">On Thu, Aug 5, 2010 at 5:06 PM, Sascha Müller <span dir="ltr"><<a href="mailto:s.mueller76@arcor.de">s.mueller76@arcor.de</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;">
<br>
<br>
Hi,<br>
<br>
It works with the trunk.<br>
<br>
Thanks!!!<br>
<br>
regards,<br>
<br>
Sascha<br>
<br>
<br>
> Hi Sascha,<br>
><br>
> your link is correct. If you don't want to check out via SVN, you could also reference the current development version on your html page:<br>
> <a href="http://dev.geoext.org/trunk/geoext/lib/GeoExt.js" target="_blank">http://dev.geoext.org/trunk/geoext/lib/GeoExt.js</a><br>
><br>
> Regards,<br>
> Andreas.<br>
><br>
> On Aug 4, 2010, at 17:26 , Sascha Müller wrote:<br>
><br>
><br>
>><br>
>> Hi,<br>
>><br>
>> I try to get the trunk. Does the link:<br>
>><br>
>> <a href="http://svn.geoext.org/core/trunk/geoext" target="_blank">http://svn.geoext.org/core/trunk/geoext</a><br>
>><br>
>> works correctly?<br>
>><br>
>> regards,<br>
>><br>
>> Sascha<br>
>><br>
>><br>
>><br>
>><br>
>>> Hi,<br>
>>><br>
>>> the issue you are describing sounds familiar. I cannot recall the ticket number, but I'm 99% that it has been fixed after the 0.7 release. So you could try trunk instead of 0.7.<br>
>>><br>
>>> Regards,<br>
>>> Andreas.<br>
>>><br>
>>> On Aug 4, 2010, at 16:32 , Sascha Müller wrote:<br>
>>><br>
>>><br>
>>><br>
>>>> Hi list,<br>
>>>><br>
>>>> I use:<br>
>>>><br>
>>>> GeoExt: 0.7<br>
>>>> OpenLayers: 2.9<br>
>>>> ExtJs: 3.2.1<br>
>>>> GeoServer: 1.7.7<br>
>>>><br>
>>>> I Change the position of a layer in the tree. Afterwards I want to check<br>
>>>> the checkbox of the layer.<br>
>>>> Then appears an error: "this.items.get(...).text' is null or no Object".<br>
>>>><br>
>>>> In LayerLegend.js<br>
>>>><br>
>>>> update: function() {<br>
>>>> var title = this.getLayerTitle(this.layerRecord);<br>
>>>><br>
>>>> => if (this.items.get(0).text !== title) { // this is the<br>
>>>> row where the error comes from.<br>
>>>> // we need to update the title<br>
>>>> this.items.get(0).text = title;<br>
>>>> }<br>
>>>><br>
>>>> },<br>
>>>><br>
>>>> If I try to check a checkbox at a layer without Drag& Drop before, it<br>
>>>> works.<br>
>>>> If I remove the Legend from the application, it works. I don't know, why the<br>
>>>> item (the layer on the new position in the tree) no properties 'text'<br>
>>>> contains.<br>
>>>><br>
>>>> Maybe I miss something with the new legend in GeoExt 0.7.<br>
>>>><br>
>>>><br>
>>>> My code looks like this:<br>
>>>><br>
>>>> treePanel<br>
>>>> ========<br>
>>>> var treePanel = new Ext.tree.TreePanel({<br>
>>>> id: 'lt',<br>
>>>> title: 'Layer',<br>
>>>> region: 'west',<br>
>>>> loader: new Ext.tree.TreeLoader({<br>
>>>> applyLoader: false<br>
>>>> }),<br>
>>>> root: {<br>
>>>> nodeType: "async",<br>
>>>> children: Ext.decode(treeConfig)<br>
>>>> },<br>
>>>> rootVisible: false,<br>
>>>> lines: false,<br>
>>>> enableDD: true,<br>
>>>> split: true,<br>
>>>> autoScroll: true,<br>
>>>> collapsible: true,<br>
>>>> bodyStyle: 'padding:5px;',<br>
>>>> width: 200,<br>
>>>> minSize: 200<br>
>>>> });<br>
>>>><br>
>>>> legendPanel<br>
>>>> ==========<br>
>>>> var legendPanel = new GeoExt.LegendPanel({<br>
>>>> title : "Legende",<br>
>>>> autoScroll : true,<br>
>>>> dynamic : true,<br>
>>>> showTitle : true,<br>
>>>> defaults : {<br>
>>>> labelCls : 'legendLabel',<br>
>>>> style : 'padding:5px',<br>
>>>> imageFormat : 'image/gif',<br>
>>>> useScaleParameter : false<br>
>>>> },<br>
>>>> bodyStyle : "padding: 1px;",<br>
>>>> filter : function(record) {<br>
>>>> return !record.get("layer").isBaseLayer;<br>
>>>> }<br>
>>>> });<br>
>>>><br>
>>>> If I use Firefox, everything is ok.The error appears, but only in the<br>
>>>> console. With the IE8, there comes a Window with the error.<br>
>>>><br>
>>>> Thanks<br>
>>>><br>
>>>> Sascha<br>
>>>><br>
>>>> _______________________________________________<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>
>>><br>
>>><br>
>><br>
>> _______________________________________________<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>
<br>
<br>
_______________________________________________<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>
</blockquote></div><br>