Questions tagged [treepanel]

197 questions
16
votes
10 answers

How do I find the selected node in an ExtJS TreePanel?

I'm trying to retrieve the selected node, if any, of a TreePanel when the user clicks a button. How do you retrieve the select node in a TreePanel? Thanks.
JD.
  • 191
  • 2
  • 3
  • 6
9
votes
3 answers

How to get rid of icons in extjs tree

I would like to get rid of the icons in an extjs tree. Instead i would like to set all the nodes that have children in bold.
alex
  • 833
  • 4
  • 12
  • 21
9
votes
1 answer

Automatically check/uncheck all subtree nodes in extjs tree when certain node gets checked/unckecked

How do I automatically check/uncheck all subtree nodes in an extjs tree when a certain node gets checked/unckecked. I already have my tree with checkboxes. The only thing missing is this check/unckeck behavior. I found this: check child nodes of a…
alex
  • 833
  • 4
  • 12
  • 21
6
votes
2 answers

How to add a child to a node in a TreePanel?

In a tree structure like this var rootNode = { id: 'root', text : 'Root Node', expanded : true, children : [ { id : 'c1', text : 'Child 1', leaf : true }, { id : …
Shashwat
  • 2,538
  • 7
  • 37
  • 56
5
votes
2 answers

Extjs 4 - creating a model for a tree panel

I would like to implement a tree panel with content loaded dynamically from the server (as Json) and with a custom data model. But I dont know how to define a model and a data store for that tree. Can you provide some examples? If possible, I'd like…
nightwatch
  • 1,276
  • 2
  • 18
  • 27
5
votes
2 answers

extjs 4 tree select a specific node by its internal id (not by record index)

I'm trying to sync a dataview (explorer window) with a tree (directory tree). When I click on an element on my dataview, I'd like the same node gets selected on the tree The problem is that using the tree.getSelectionModel().select(index) doesn't…
lapos34
  • 51
  • 1
  • 1
  • 2
5
votes
3 answers

extjs treepanel: expand() & expandChildNodes()

If I write: rootNode.expand() I can only get access to the children nodes of this rootNode, but can't get access to the grandchildren nodes of this rootNode. I have to write: rootNode.expandChildNodes() in order to acheive it. Is there another way…
Simon
  • 1,463
  • 6
  • 34
  • 46
5
votes
1 answer

ExtJS 4 - Never cache tree nodes in tree panel

I have a simple Ext.tree.Panel, which loads its data from a Ext.data.TreeStore using an ajax proxy. The default behavior when expanding a treenode seems to be: if expanded before: retrieve from cache if never expanded: retrieve from server How can…
Zurb
  • 738
  • 1
  • 5
  • 18
4
votes
4 answers

Extjs4 how to change the store in treepanel

I have some menu tree stores in 'app/store/', such as 'menu1.js' , 'menu2.js'. In my web page, I have a navigation bar at top region with many buttons to control the menu tree at left region to change the menu. But I do not know how to change the…
user948448
  • 41
  • 2
  • 4
4
votes
1 answer

Ext JS very slow check/uncheck nodes in tree since 4.2 version

I use cascadeBy function and record.set('checked', checked); to check/uncheck child nodes in Ext JS treepanel. In 4.0.7 and 4.1 version of EXT JS all works fast. But when I upgrade my project to 4.2 version this operation use more then 4 times more…
clarent
  • 347
  • 2
  • 15
4
votes
2 answers

Check and uncheck nodes in treepanel

To do : Checking a child should check parents up the tree, and clearing a parent checkbox should clear all of it's children. Example : parent1 --child1 --child2      --subChild1      --subChild2 Scenario1 :In above case, if subChild1 is…
Dev
  • 3,922
  • 3
  • 24
  • 44
4
votes
2 answers

extjs treestore with proxy

I'm creating a MVC extjs application. I've got a treepanel with a store, which is loading the data from a php source. I get the following json-formatted response: [ { "text": "Home", "leaf": true, "dbName": "NULL", "children":…
sveatlo
  • 543
  • 9
  • 27
4
votes
2 answers

Extjs 4 Explain drag and drop how to implement across two grids or treepanels

Using Extjs 4.07 Assume I have two treePanels or, more likely, two grids. I want to be able to drag items back and forth between the two. What are the basic mechanisms required to do this? I'd liek to see some sample code demonstrating how it is…
Bbb
  • 271
  • 2
  • 8
  • 22
3
votes
1 answer

Ext.tree.Panel automatic height in ExtJS 4

How do I create Ext.tree.Panel that automatically resizes to fit its content when nodes are expanded/collapsed?
Ildar
  • 798
  • 2
  • 14
  • 35
3
votes
0 answers

How do I configure an ExtJS 4.0 xmlTreeStore for a treePanel with Designer 1.2?

The tutorials for xml treePanels are too simple. I don't know if what I want is even possible. What I want is to see a tree with a root folder called "contenttype" (or simply "root" is acceptable). Inside the root folder is one folder called…
Rubicksman
  • 322
  • 1
  • 2
  • 11
1
2 3
13 14