Oct 20, 2020, 1:25 PM
-
-
Oct 20, 2020, 4:43 PMHello @vamsi!
The tree list component always take a root node, it is just as a reference to derive the remaining child nodes. If you want to have a single node displayed in the tree list all you need to do is keep a single node within the root node.
In case you have both a tree panel and tree list in the same page that shares the same store, just follow the same technique and set the tree panel to hide the root nodeRootVisible="false"
, then they should show the same node hierarchy.
There's no option to show the root node in the tree list component. It is a lightweight alternative to tree panel in which the feature set is intentionally reduced.
Hope this helps! -
Oct 21, 2020, 8:20 AMThank you for reply. Is there any option to find event when user select expand event(arrow mark) using treelist.
I need to get the data from database and append the nodes like child nodes dynamically based on the node item(selected value).
Is there any approach to get event before expand event or expand event like that.
My requirement is when ever user click on arrow button in treelist then we will get the data from database and append to the treelist instead of preloaded.
Thank you,
Vamsi. -
Oct 21, 2020, 4:06 PMHello Vamsi!
Originally Posted by Vamsi<Listeners>
block.
To look up documentation for supported events and further details, you can look up the Ext JS framework documentation. For instance, Ext.list.Tree.events documentation.
Originally Posted by Vamsi
Originally Posted by Vamsi
You can, as with any Ext.NET component, extend the TreeList one to support other features like node expand event and also pulling extra nodes from remote.
Hope this helps! -
Oct 21, 2020, 4:38 PMThank your reply..I don't want to switch to teepanel..is there any option to add the before load event to the treelist..
Thank you,
Vamsi. -
Oct 21, 2020, 4:47 PMHello @vamsi!
There is, extending the component as said in the last message. We unfortunately don't have any work or sample on this already done for the specific TreeList component and BeforeLoad event.
You are free and encouraged to extend any Ext.NET component to your needs. If you are unsure how to extend components we can share some material from Ext JS and there are also other threads here in the forums with samples and questions about it. But if what you wanted was actual working code with the extension already developed, we simply don't have it.
I am reluctant to log this as a feature request as the functionality is already available via the TreePanel and it could compromise the lightweight goal of the TreeList one. So we can't just offer this feature for everyone. -
Oct 23, 2020, 3:04 PMThanks for the update.
I'm not familiar about extend the treelist and if possible can you please provide the sample code treelist extends before load event on node expand.
Thank you,
Vamsi. -
Oct 23, 2020, 6:10 PMHi. I took a look and we do not have a sample demonstrating this scenario.
If you're looking for extra professional services to help on your project, posting a request in the Jobs forum may help find someone.
Similar Threads
-
Expand root node in the tree panel automatically
By velusoft in forum 2.x HelpReplies: 5Last Post: Mar 15, 2016, 2:11 AM -
TreePanel without Root node
By Dominik in forum 1.x HelpReplies: 3Last Post: Jun 25, 2014, 7:07 PM -
[OPEN] [#349] how to auto expand the tree's root node?
By hdsoso in forum 2.x Legacy Premium HelpReplies: 7Last Post: Nov 18, 2013, 6:26 AM -
[CLOSED] TreePanel root
By cwolcott in forum 2.x Legacy Premium HelpReplies: 2Last Post: Nov 12, 2012, 1:05 PM -
[CLOSED] TreePanel + Root
By aisi_it_admin in forum 2.x Legacy Premium HelpReplies: 1Last Post: Oct 08, 2012, 10:34 AM