Questions tagged [treepanel]

197 questions
2
votes
1 answer

ExtJS 6: TreePicker does not fire change event

See fiddle here: https://fiddle.sencha.com/#fiddle/2iig&view/editor The docs (https://docs.sencha.com/extjs/6.6.0/classic/Ext.ux.TreePicker.html#event-change) list 'change' in the events section but when I set the value or reset the field this event…
zeke
  • 3,603
  • 2
  • 26
  • 41
2
votes
3 answers

How to delete a node from an Ext TreePanel if the node hasn't been rendered

I've found that I can't delete nodes that haven't been rendered yet. The following code shows what I mean. I ran it from the Chrome's (and Firebug's) command line while on http://dev.sencha.com/deploy/dev/exa...dow/hello.html (since that page has…
Ruan Mendes
  • 90,375
  • 31
  • 153
  • 217
2
votes
1 answer

ExtJS TreePanel - refresh and keep status of nodes

How to refresh contents of TreePanel in extjs and save status of nodes (expanded/collapsed). When I do fileList.root.reload(); All expanded nodes become collapsed. How can I avoid that? Thanks.
ledokol
  • 179
  • 9
2
votes
4 answers

Get JSON Data from ExtJS TreePanel

Lets say I have a Ext.tree.TreePanel object, and it has data loaded from an external file, ex: var tree = new Ext.tree.TreePanel({ ... loader: new Ext.tree.TreeLoader({ dataUrl:'./some_file.json' }), ... }); This file is an…
patorjk
  • 2,164
  • 1
  • 20
  • 30
2
votes
3 answers

Extjs treepanel: how to drop a node on leaf nodes

Does anybody know how to enable drag and drop onto leaf nodes of a treepanel? My scenario is exactly like this one: http://dev.sencha.com/deploy/dev/examples/tree/reorder.html but I need also to append items to leaf nodes. Thanks
Sergio Morstabilini
  • 2,035
  • 21
  • 28
2
votes
2 answers

How to show parent and its child when filtering Extjs Treepanel parentNode

How to Show childNodes in extjs treePanel if parent Node is filtered Fiddle Here As you can see the fiddle you can filter any parent Node but child will be hidden, but when you search child parent will be visible. I want to see parent in the both…
PraveenKumar S
  • 260
  • 1
  • 13
2
votes
1 answer

autoscroll is not working on Tree Panel

I try to add scrollbar to the tree panel but even if I add the autoscroll : true it doesn't scroll. here is the panel : Ext.create('Ext.tree.Panel', { title: 'asdasd', autoscroll:true, …
Cengiz Dogan
  • 149
  • 1
  • 13
2
votes
3 answers

ExtJs 5: TreePanel: Not getting the default leaf icons and lines

I created a sample TreePanel using Sencha ExtJs 5. I followed the sample example in the documentations and I am able to see the items (leaves and branches) but they are not coming as a Tree, but as a list. Here is my code:…
DarkKnightFan
  • 1,913
  • 14
  • 42
  • 61
2
votes
1 answer

How can I get my tree panel to recognize all child nodes?

I'm trying to traverse all of the nodes in my tree panel. The problem is that if I don't expand a node before calling node.eachChild(), the node thinks that it doesn't have any children. (Even if it does) If you look at my jsfiddle, click the…
Grammin
  • 11,808
  • 22
  • 80
  • 138
2
votes
1 answer

Ext.tree.Panel after collapsed not expanding

After creating the tree panel, I set the collapsible property to true. On the page, after clicking on that collapse icon(>>), the tree is collapsed. But when I try to expand it again after collapse, it doesn't expand. On page, the javascript error…
user1745306
2
votes
1 answer

Expand & collapse Ext js treepanel incorrect behaviour for duplicate leaf nodes

I have a typical problem here like, I am trying to replicate the folder structure on the server using the TreePanel. The scenario is that I have some folders which are having repeated children. that is, the file/folder name is same which is the Node…
chaosguru
  • 1,933
  • 4
  • 30
  • 44
2
votes
1 answer

TreePanel not expanding ExtJS 3

This is my code - var myTree = { containerScroll: "true", width: 500, root: new Ext.tree.AsyncTreeNode({ id: "source", text: "Root", expanded: true, draggable: true, expandable: true …
Ved
  • 8,577
  • 7
  • 36
  • 69
2
votes
3 answers

extjs treepanel expand collapse event

I have a treepanel with nodes inside the treepanel. To identify whether the treepanel and not the nodes that are expanded or collapsed I use the following code: Ext.getCmp('general').collapsed The return value is either true or false. Is there an…
Eugene Anthony
  • 49
  • 1
  • 1
  • 11
2
votes
3 answers

Can't show the json Data in Treepanel in extjs 4

I am working on showing JSON data in EXTJS 4 TreePanel. But my tree is not showing any data . Please let me know where I am wrong. Let me post my codes below: View Part: it has got the treepanel xtype: 'treepanel', title: 'Standard…
SBanerjee
  • 23
  • 1
  • 4
2
votes
1 answer

Treepanel with rootVisible = true not shown

My tree is shown correctly when using rootVisible: false. However setting it to true leads to no tree display and no error. My aim is to show a root node that I can define as / or Root. How to achieve this? My solution: Putting rootVisible to true…
Shlomo
  • 3,880
  • 8
  • 50
  • 82
1 2
3
13 14