Originally Posted by
MarcA
1). When I clear the checkbox treePanel.ClearChecked(), all my nodes get checkboxes also if they did not have a checkbox.
how can i clear all the nodes that have a checkbox at once?
I see. Please try this override:
Ext.tree.Panel.override({
toggleChecked : function (startNode, value) {
startNode = startNode || this.getRootNode();
var f = function (node) {
var oldValue = node.get("checked");
if (oldValue !== null && oldValue !== value) {
node.set('checked', value);
this.fireEvent('checkchange', node, value);
}
};
var originFn = this.updateCheckSelection;
this.updateCheckSelection = Ext.emptyFn;
startNode.cascadeBy(f, this);
this.updateCheckSelection = originFn;
this.updateCheckSelection();
}
});
Originally Posted by
MarcA
2). How do I remove the Icons?
I am not 100% sure what you mean. Please clarify.
Originally Posted by
MarcA
3). I have set
RowLines = false
on the TreePanel but i still see lines.
How do I remove them?
Please start a new forum thread.
Originally Posted by
MarcA
using treePanel.GetNodeById works, is there a way I can check if the node exists before setting?
Please start a new forum thread.