Current filter:
                                You should refresh the page.
                                  • I want to make multi-level hierarchy treelist (maybe data has 4 or more hierarchy level)

                                    In my data table, there are many columns that represent path, such as windows explorer

                                    and data table is consisted of so many rows ( almost 30000)  (and there are so many overlapped-path , So i should delete them, leave only one)

                                    In this situation, what should i do to make this file-path treelist?

                                    Use unbound-data mode or bound-data mode?

                                    Is treelist faster than treeview(.NET component) ?

                                    I want to know those question. Thank you

                                1 Solution

                                Creation Date Importance Sort by

                                Hello Daewon,

                                The best way to accomplish this task is to use the dynamic data loading. Refer to the following KB article to get details: How to: Load Data Dynamically via Events
                                You can also find an example demonstrating a similar task in our Demo center - the Explorer (Virtual Tree) .
                                Is treelist faster than treeview(.NET component) ?
                                The use of the TreeList will be the most appropriate solution for you. Although the controls are similar, TreeList supports multiple columns together with a lot of other features. Thanks to dynamic data loading supported by our control, it should work faster. In any case, if the performance is critical for you, it is worth measuring the performance of TreeList and TreeView in your concrete scenario to see what control is more suitable.
                                Should you have further questions, let me know.

                                Show all comments
                                • dwsa 09.12.2017

                                  Thank you for replying my question

                                  umm i want to know "how to i check if the node(file path) is already made or not exist??

                                  In treeview, there is Contain(key) method. So i can find node with specific value quickly in treeview . But in Treelist, i couldn't find such method..

                                  umm if my data table is like that

                                  tes1 -- tes2 -- tes3 -- data1
                                  tes1 -- tes4 -- tes9 -- data2
                                  tes5 -- tes6 -- tes7 -- data3

                                  then i want to make treelist like that

                                  tes1 - tes2 - tes3 -data1
                                          - tes4 - tes9 - data2

                                  tes5 - test6- tes7 - data3

                                  if rows of data is small, then i append the node manually , But In my case, the number of rows is 50000(more)
                                  then should i use dynamic load method?

                                • Vladislav (DevExpress Support) 09.12.2017

                                  You can use the TreeList.FindNodeByID or TreeList.FindNodeByKeyID method to check if the node already exists.
                                  As for the load method, if you do not wish to load all the nodes at once due to performance reasons, it makes sense to use the dynamic data loading, like it is done in our demo. In other cases it depends on your data presentation and scenario.
                                  Keep me informed of your progress.

                                • dwsa 09.12.2017

                                  I faced some problem.

                                  In devexpress example, explorer just get subdirectory in specific directory, And then displayed it

                                  That is  show order how to explorer make tree

                                  1 - 2 - 5
                                       2   5
                                       2   5
                                       2   5

                                  1- 3

                                  1- 4

                                  But in my case, i can't use getdirectory method. I can't access specfic directory

                                  i only have many datas  such as ( group1 , group2 , group3 , data ) (group information)

                                  In this case, I check if the group node already exists , And I don't know what to do in this procedure

                                  what do you recommend  about it ?

                                • dwsa 09.12.2017

                                  that is example

                                  i have data like that

                                  [ group 1, ss 1 , ss2, null , ss8  , data 1]
                                  [ group 1, ss 1, ss 3  , ss x , null, data 2]
                                  [ group 1, ss 1, ss 2, null, ss 8 , data 3]
                                  [group 2 , ss 9 , null , null, null, data 4]
                                  [group 2 , ss 9 , null , null, ss n , data 5]

                                  In this case I want to make tree like that

                                  group 1 - ss1 - ss2 - ss8 -- data1
                                                        |                   |--data3
                                                        - ss3 - ssx -- data2

                                  group 2- ss 9  --data 4
                                                         - ss n --data 5

                                  So i think i have to check node exist or not..
                                  But That problem is confused me

                                • Vladislav (DevExpress Support) 09.13.2017

                                  Hello Daewon,

                                  Thank you for your clarification. Currently, it is clear with what data presentation you are working. In your case, a better way is to use the unbound data loading mode to keep good performance. If you choose the dynamic one, you will need to check all your nodes when the parent node is expanded each time.
                                  I have created a simple sample that illustrates how to use unbound data loading in your scenario. Please refer to it in the attachment.
                                  Should you have further questions, let me know.

                                • dwsa 09.13.2017

                                  thank you for replying my question :)
                                  I'll try to solve this problem by method that you recommended
                                  I'll give my progress info to you

                                • Vladislav (DevExpress Support) 09.13.2017

                                  You are welcome. I look forward to hearing from you.

                                • dwsa 09.14.2017

                                  I referred to your solution, and  almost solve the problem

                                  But it has still speed-issue when making tree (about taking 2~3 seconds)

                                  I want to tree-making more fast (umm.. about half? or 1/4)

                                  To accomplish this goal, i think i should use dynamically-load method.

                                  But as you know, there is no hierarchy information in my data

                                  In this case, how to i reduce the making-time??

                                • Vladislav (DevExpress Support) 09.15.2017

                                  Hello Daewon,

                                  I suppose that using the dynamic data loading method will help you to solve this issue.
                                  Your data has the hierarchy information and you only need to use the column number as the level indicator without including nullable values. Please give me a little bit more time to prepare a simple project for you. I will update this ticket once the project is ready.

                                • dwsa 09.15.2017

                                  thank you:) i'll wait for your reply
                                  and i also try to solve this dynamic-load problem

                                • Vladislav (DevExpress Support) 09.18.2017

                                  Hello Daewon,
                                  I have created a simple example that illustrates how to implement the Dynamic Loading in Unbound Mode. Refer to it in the attachment.
                                  I did not delete the previously attached project, so you can compare the performance in the unbound and dynamic mode and chose a suitable one.
                                  Should you have further questions, let me know.

                                • dwsa 09.18.2017

                                  Thank you for your effort!!

                                  I solved the problem by dynamic-loading in unbound mode

                                  If i have further question, i let you know.

                                • Vladislav (DevExpress Support) 09.19.2017

                                  I am happy to hear that the problem has been resolved. Thank you for letting us know of your progress.
                                  Please feel free to contact us in case of any difficulty. We will be happy to assist you.