[Users] Error after Drag & Drop in LayerTree [SOLVED]
sandip jadhav
jadhavsandipm at gmail.com
Thu Aug 5 13:44:31 CEST 2010
Hi to All,
I have some problem with layers tree.
Ext.apply(this, config, {
rootVisible: false
, useArrows: true
, enableDD: true
, root: new GeoExt.tree.LayerContainer({
text: 'Map Layers'
, layerStore: config.layers
, leaf: false
, expanded: true
})
});
The main problem with this is when I reorder (With dragging &
dropping ) tree it changes checkbox to radio button for base layer.
Question 1) Is there any way to make checkbox for baselayer?
Question 2) Why it behaves like this.?
Sorry for my english.
I am new to Geoext.
Thank You,
Sandip Jadhav
On Thu, Aug 5, 2010 at 5:06 PM, Sascha Müller <s.mueller76 at arcor.de> wrote:
>
>
> Hi,
>
> It works with the trunk.
>
> Thanks!!!
>
> regards,
>
> Sascha
>
>
> > Hi Sascha,
> >
> > 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:
> > http://dev.geoext.org/trunk/geoext/lib/GeoExt.js
> >
> > Regards,
> > Andreas.
> >
> > On Aug 4, 2010, at 17:26 , Sascha Müller wrote:
> >
> >
> >>
> >> Hi,
> >>
> >> I try to get the trunk. Does the link:
> >>
> >> http://svn.geoext.org/core/trunk/geoext
> >>
> >> works correctly?
> >>
> >> regards,
> >>
> >> Sascha
> >>
> >>
> >>
> >>
> >>> Hi,
> >>>
> >>> 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.
> >>>
> >>> Regards,
> >>> Andreas.
> >>>
> >>> On Aug 4, 2010, at 16:32 , Sascha Müller wrote:
> >>>
> >>>
> >>>
> >>>> Hi list,
> >>>>
> >>>> I use:
> >>>>
> >>>> GeoExt: 0.7
> >>>> OpenLayers: 2.9
> >>>> ExtJs: 3.2.1
> >>>> GeoServer: 1.7.7
> >>>>
> >>>> I Change the position of a layer in the tree. Afterwards I want to
> check
> >>>> the checkbox of the layer.
> >>>> Then appears an error: "this.items.get(...).text' is null or no
> Object".
> >>>>
> >>>> In LayerLegend.js
> >>>>
> >>>> update: function() {
> >>>> var title = this.getLayerTitle(this.layerRecord);
> >>>>
> >>>> => if (this.items.get(0).text !== title) { // this is
> the
> >>>> row where the error comes from.
> >>>> // we need to update the title
> >>>> this.items.get(0).text = title;
> >>>> }
> >>>>
> >>>> },
> >>>>
> >>>> If I try to check a checkbox at a layer without Drag& Drop before,
> it
> >>>> works.
> >>>> If I remove the Legend from the application, it works. I don't know,
> why the
> >>>> item (the layer on the new position in the tree) no properties 'text'
> >>>> contains.
> >>>>
> >>>> Maybe I miss something with the new legend in GeoExt 0.7.
> >>>>
> >>>>
> >>>> My code looks like this:
> >>>>
> >>>> treePanel
> >>>> ========
> >>>> var treePanel = new Ext.tree.TreePanel({
> >>>> id: 'lt',
> >>>> title: 'Layer',
> >>>> region: 'west',
> >>>> loader: new Ext.tree.TreeLoader({
> >>>> applyLoader: false
> >>>> }),
> >>>> root: {
> >>>> nodeType: "async",
> >>>> children: Ext.decode(treeConfig)
> >>>> },
> >>>> rootVisible: false,
> >>>> lines: false,
> >>>> enableDD: true,
> >>>> split: true,
> >>>> autoScroll: true,
> >>>> collapsible: true,
> >>>> bodyStyle: 'padding:5px;',
> >>>> width: 200,
> >>>> minSize: 200
> >>>> });
> >>>>
> >>>> legendPanel
> >>>> ==========
> >>>> var legendPanel = new GeoExt.LegendPanel({
> >>>> title : "Legende",
> >>>> autoScroll : true,
> >>>> dynamic : true,
> >>>> showTitle : true,
> >>>> defaults : {
> >>>> labelCls : 'legendLabel',
> >>>> style : 'padding:5px',
> >>>> imageFormat : 'image/gif',
> >>>> useScaleParameter : false
> >>>> },
> >>>> bodyStyle : "padding: 1px;",
> >>>> filter : function(record) {
> >>>> return !record.get("layer").isBaseLayer;
> >>>> }
> >>>> });
> >>>>
> >>>> If I use Firefox, everything is ok.The error appears, but only in the
> >>>> console. With the IE8, there comes a Window with the error.
> >>>>
> >>>> Thanks
> >>>>
> >>>> Sascha
> >>>>
> >>>> _______________________________________________
> >>>> Users mailing list
> >>>> Users at geoext.org
> >>>> http://www.geoext.org/cgi-bin/mailman/listinfo/users
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>
> >> _______________________________________________
> >> Users mailing list
> >> Users at geoext.org
> >> http://www.geoext.org/cgi-bin/mailman/listinfo/users
> >>
> >
>
>
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100805/5d0d5ff0/attachment.htm
More information about the Users
mailing list