[Users] Help with layer tree and radio buttons

Dan Ramage dan at inlet.geol.sc.edu
Thu Oct 29 12:49:21 CET 2009


Andreas,

I do have a function like that. What I think my problem was is in the
TreePanel, I had some inappropriate settings, mainly I had "xtype:
'layertree'" from a cut and paste error. I think that may have been the
issue as it is working now.

Thanks for the help!

Dan


-----Original Message-----
From: Andreas Hocevar [mailto:ahocevar at opengeo.org] 
Sent: Wednesday, October 28, 2009 5:08 PM
To: Dan Ramage
Cc: 'Eric Lemoine'; users at geoext.org
Subject: Re: [Users] Help with layer tree and radio buttons

Dan Ramage wrote:
> I must have had some parameter incorrect in the TreePanel, the filter
> function is now getting called.
>   

Do you have something like

{
nodeType: "gx_layercontainer",
loader: {
filter: function(rec) {return true/false}
}
}

Regards,
Andreas.
>
> Dan
>
> -----Original Message-----
> From: Eric Lemoine [mailto:eric.lemoine at camptocamp.com] 
> Sent: Wednesday, October 28, 2009 12:35 PM
> To: Dan Ramage
> Cc: Andreas Hocevar; users at geoext.org
> Subject: Re: [Users] Help with layer tree and radio buttons
>
> On Wed, Oct 28, 2009 at 4:05 PM, Dan Ramage <dan at inlet.geol.sc.edu> wrote:
>   
>> When does the filter function get called? Is there something I have to do
>>     
> to
>   
>> force it to get called?
>>     
>
> it is called when the loader's load method is called. You shouldn't
> have to do anything to get it called.
>
>
>   


-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.



More information about the Users mailing list