[Users] Synchronising LayerTree Node w/ checkbox and Map with a Grid Panel

Daniel Behr daniel.behr at hzg.de
Thu Feb 17 11:24:41 CET 2011


Hi,
rather simple question, I guess, but I cant figure it out.

I have a mapPanel and a treePanel, added a WFS Layer with a checkbox to 
the tree and when the box is checked the features are loaded and I see a 
list of features in a grid panel below.
this works as expected until the box is unchecked. The grid panel is not 
cleared.

adding a listener to the tree config clears the gridpanel but after 
checking the box again the map is updated but the grid stays empty.

	listeners: {
	    'checkchange': function(node, checked) {
		if (checked === false) {
  		    // gridPanel.toggleCollapse()
		    gridPanel.removeAll();
		    gridPanel.update()
		}
	    }
	}

does anyone know of an example where I can look at the code or maybe 
someone can give me a hint what I am missing here?
thanks
Dan


More information about the Users mailing list