Treepanel losing selection after appending nodes. (ExtJS / Rally) - extjs

I am creating a treepanel object in Ext JS which dynamically adds nodes to the tree based on child information returned from the server. The problem I'm having is that I would like to be able to select multiple objects from the tree and have that selection remain after expanding a node. Since appending nodes is effectively changing the tree, the selection is lost. Is there any way I can preserve this selection after appending the new nodes?

you could save the nodes or ids of the nodes being selected and then reselect them after appending additional nods.

Related

ADF tree binding issue

I'm using 3 levels tree VO's. All three VO's has bind variables. The VO's are connected via View link. I'm using createViewLinkAccessorRS in order to pass the variables from parent to child VO.. i defined Target Data Source (EL_expression) for second and third level.The tree works fine, and the nodes filled correctly (all the way down). The Problem is that the second and the third tree level attributes are only shown in the tree component. anywhere else in the page it looks like they are empty ({bindings.(attname).inputValue} = null) (E.g - after dragging the third tree level "FlowOrder" from the AppModuleDataControl and create a form out of it, and selecting the second node of the tree will update all the third level tree node (please see attached image), but will leave the entire form which was just created empty)
Any idea why the FlowOrder bindings are empty? i assume that maybe it has to do with the bind variable of the VO .. i even thought i would change the tree selection listener so on the second level click it will perform a full query of "FlowOrder" via executewithparams, but it does not make any sense because the data was fetched already after clicking level 2 tree)
(Jdeveloper : 12.2.1.2.0)
attached image: Details
Check out my explanation on trees and example application in another post: ADF filter table based on tree selection The tree shows data from view link accessors. The form shows data from view instance. They are in different state.

Changing the order of Folders and Leaf nodes in ExtJs 4.0 TreePanel

In ExtJs 4.0 Tree Panel the folders always appears first and then the leaf nodes.
Check the this link or below image to see how folder appears first and then the leaf node.
Is there any way to show the folders and leaf node order by name, instead of showing folders first. Or is there way to set some property for each folder and leaf node and then sort based on this property.
The configuration option which results in the sort behavior of the example you are referring to is folderSort. However, by default it is set to false, so you should not need to configure anything for your desired sort order.

traverse firebase list (previous and next sibling)

Is it possible to get the next child in a firebase list? I'm using the 'push()' functionality for lists. When I remove one item from the list I want to select the adjacent element so that there is always an item selected. But there is no way to get the sibling item.

Load empty values from referenced node in Views (Drupal 7)

I have a view displaying nodes of two content types. The nodes all have a cck field made with Entity Reference referencing a "parent" node. If the displayed node in the view has an empty value, the view should display the value in the parent node. Simple as that.
The filters should also be able to filter on the parent's values...
I'm thinking it should be solved with handlers somehow, but I'm having a lot of trouble finding my way through the documentation. Could anybody please help?
I'm working with Drupal 7.14, Views 7.x-3.3 and Entity Reference 7.x-1.0-rc3+2-dev.
-- Mikkel

In ExtJS 4, How do you delete a tree node when the associated grid information to the node is deleted at random

My code so far populates via drag and drop tree nodes and leaves from a grid panel. I want to know how to remove a tree node when the grid information associated with it is removed.
You should have something like id property in your model both in grid and tree. So when you remove record in the grid you then search for the node with this id in tree and remove it as well. Another way is just save the reference to the node when you drop it.
The flow is:
user drags and drops record from grid to the tree
when the record is dropped and new node is created you save reference in the grid's record
onNodeDrop: function(){
grid.getSelected().treeNode = tree.lastCreatedNode;
}
then when you delete record in grid you could delete node as well.
Note - this is just a psuedocode, is won't work. Just to give you an idea.

Resources