PDA

View Full Version : [CLOSED] Changelog for treepanel



xeo4.it
Sep 04, 2012, 12:55 PM
Goodevening,
I am trying to make the updating of a project to the version 2.0 of Ext.net, to decide if to do it for all our projects. It's very hard. In your CHANGELOG.txt miss a lot of things.
Please help me:
1) The property "IsTarget" of Ext.Net.Node doesn't exist, how do I replace it?
2) The method ReplaceChildNode of TreePanel doesn't exist, how do I replace it?
3) The method AppendChild Of TreePanel doesn't exist, how do I replace it?
4) The method ExpandNode of TreePanle doesn't exist, how do I replace it?
5) The property "Editable" of Ext.Net.Node doesn't exist, how do I replace it?

Thank you very much.

Jimmy

Daniil
Sep 04, 2012, 1:43 PM
Hi,



1) The property "IsTarget" of Ext.Net.Node doesn't exist, how do I replace it?


Please use AllowDrop.
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.data.NodeInterface-cfg-allowDrop



2) The method ReplaceChildNode of TreePanel doesn't exist, how do I replace it?


It is related to the CHANGELOG item #97.



97. The TreePanel server side methods - SetNodeText, SetNodeCls, SetNodeHref, SetNodeIcon, SetNodeIconCls, SetNodeId, SetNodeText, SetNodeTooltip - have been removed. Now you should get a node proxy calling the TreePanel GetNodeById method, then call a respective method of that node proxy. Example //Old TreePanel1.SetNodeText("nodeId", "new text") //New TreePanel1.GetNodeById("nodeId").Set("text", "new text")

Example

var oldNode = TreePanel1.GetNodeById("oldNode");
var newNode = new Node() { Text = "New node" };
this.TreePanel1.GetNodeById("parentNode").ReplaceChild(newNode, oldNode);



3) The method AppendChild Of TreePanel doesn't exist, how do I replace it?
4) The method ExpandNode of TreePanle doesn't exist, how do I replace it?


Please see the answer for #2.



5) The property "Editable" of Ext.Net.Node doesn't exist, how do I replace it?


Confirm. Now please set up any custom attribute via CustomAttributes (you can call it "editable" as well), then analyze it within a BeforeEdit listener of CellEditing plugin to determine allow or not editing. Returning false from a BeforeEdit listener prevents editing.

Thanks for the reports, we will accordingly update the CHANGELOG.

xeo4.it
Sep 13, 2012, 9:23 AM
Thank you very much.