[Users] Radio Button in Sub-nodes (Treeview)...

Paul james pauljame at gmail.com
Wed Oct 21 19:39:07 CEST 2009


Hello ...
I´m able to add a radiobutton on sublayers that use nodetype="gx_layer"...
Example:
                                    nodeType:
"gx_layer",
                                    layer: "layer1",
                                    isLeaf: false,
                                    loader: {
                                        param:
"LAYERS",
                                        baseAttrs: {
                                            uiProvider:
Ext.extend(Ext.tree.TreeNodeUI, {
                                                render: function(bulkRender)
{

Ext.tree.TreeNodeUI.prototype.render.apply(this,
arguments);
                                                    var cb =
this.checkbox;

Ext.DomHelper.insertAfter(cb, ' <input type="radio" class="gx-tree-radio"
name="radio"></input>' );
                                                },
                                                onClick: function(e) {

if(e.getTarget('.gx-tree-radio', 1)) {

alert(this.node.text);
                                                    }
                                                    else {

Ext.tree.TreeNodeUI.prototype.onClick.apply(this,arguments);
                                                    }
                                                }
                                            })
                                        }

But, and  how about nodeType: "gx_layerparam" ? How can I add a radio button
to that node?

                                nodeType: "gx_layerparam",
                                layer: "Layer1",
                                param: "LAYERS",
                                item: "Layer12",
                                text: "Test"

I tried to implement the loader, but it doest work...

Pail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20091021/8bfa00d0/attachment.htm 


More information about the Users mailing list