PDA

View Full Version : TreeLoader - node param override



Jack_S
29 Nov 2009, 5:56 AM
Hello All,

This may seem like a noob question, but which class do I need to override in order to force the parameter 'node' in the treeLoader to be changed to something like x01.

I've tried the below without any effect. Also this is not an attribute, this is the actual node but in the POST I would like to see X01 instead of the default 'node'.



-- POST
node source --> would liek this to be x01 source




Ext.override(Ext.tree.TreeNode, {paramNames: {node: 'x01'}});
Ext.override(Ext.tree.TreeLoader, {paramNames: {node: 'x01'}});
Ext.override(Ext.tree.AsyncTreeNode, {paramNames: {node: 'x01'}});



Thanks for your help

Jack

Jack_S
29 Nov 2009, 8:37 AM
Hello All,

We'll I did not find a very clean way to do this, but it does the trick for me. Only probl;em is that its unsusstainable for future relaeses. Hopefully someone will have a better solution.



//buf.push("node=", encodeURIComponent(node.id));
buf.push("x01=", encodeURIComponent(node.id));