View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0011337 | MMW v4 | Framework: Scripts/Extensions | public | 2013-10-04 14:37 | 2013-10-04 14:37 |
Reporter | zvezdan | Assigned To | |||
Priority | none | Severity | feature | Reproducibility | N/A |
Status | new | Resolution | open | ||
Summary | 0011337: ISDBTree::MoveNode method needed | ||||
Description | In my Magic Nodes script I have an option to move or swap custom nodes, within the same or different parent nodes. I am doing this by removing one node using RemoveNode method and adding that same node to the another place in the tree. However, in this process that newly added node will not be expanded. I could store its Expanded property before removing and if it is True I could expand it in the script after adding it to the another place, but Magic nodes very often are created using complicated SQL expressions and their expanding could take too much time (which is the main reason why I am not restoring the Expanded state for the moved nodes). There is also another problem with such solution, I could expand only the removed/added node, but all its sub-nodes will be collapsed even if some of them are expanded before moving that node. Since the number of sub-levels and sub-nodes on each level could be tremendous, it would be too much to store Expanded state for all of them, not too mention how time consuming for users would be their expanding. So, it would be nice if you add one new method which could move some node in the tree with all its sub-nodes, i.e. it could change the parent node for some existing node. That method should keep the Expanded state for moved node and all its sub-nodes. I know that such thing is possible since your collections keep expanded state of their sub-nodes when you move them up/down in the tree using Manage Collections. The suggested method should have similar arguments as AddNode method, i.e. ParentNode As ISDBTreeNode, AddNode As ISDBTreeNode, NodePosition As EnumTreeNodePos. | ||||
Tags | No tags attached. | ||||
Fixed in build | |||||