D dgoss Member Licensed User Longtime User Oct 3, 2015 #1 I looked but could not find anything here so I ask the question. This is what I can do with treeview:- list folders expand and list sub folders But when collapse folder and re-open it I get double listing of sub folders, I don't know how to refresh treeview without having to list all folders again. Pls be patient with me for I know not what I am doing
I looked but could not find anything here so I ask the question. This is what I can do with treeview:- list folders expand and list sub folders But when collapse folder and re-open it I get double listing of sub folders, I don't know how to refresh treeview without having to list all folders again. Pls be patient with me for I know not what I am doing
Erel B4X founder Staff member Licensed User Longtime User Oct 4, 2015 #2 Can you post some code? Are you adding items in the ExpandedChanged event? Upvote 0
D dgoss Member Licensed User Longtime User Oct 4, 2015 #3 posted small test project Attachments listfilestest.zip listfilestest.zip 2 KB · Views: 544 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 4, 2015 #4 Test whether the TreeItem was already filled or not: Code: Copy If ti.Children.Size = 0 Then 'fill it End If Why don't you use FileChooser or DirectoryChooser? Upvote 0
Test whether the TreeItem was already filled or not: Code: Copy If ti.Children.Size = 0 Then 'fill it End If Why don't you use FileChooser or DirectoryChooser?
D dgoss Member Licensed User Longtime User Oct 4, 2015 #5 Erel said: Test whether the TreeItem was already filled or not: Code: Copy If ti.Children.Size = 0 Then 'fill it End If Why don't you use FileChooser or DirectoryChooser? Click to expand... Thx Erel will test it out Upvote 0
Erel said: Test whether the TreeItem was already filled or not: Code: Copy If ti.Children.Size = 0 Then 'fill it End If Why don't you use FileChooser or DirectoryChooser? Click to expand... Thx Erel will test it out