This is a migrated thread and some comments may be shown as answers.

Treeview showing right arrow

2 Answers 109 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 10 Apr 2014, 08:11 PM
I have a file explorer on a screen and it loads the treeview, but it always shows the right arrow next to every folder regardless if it has files or not.  How do you set it to not show that arrow if the folder is empty

2 Answers, 1 is accepted

Sort by
0
Frank
Top achievements
Rank 1
answered on 10 Apr 2014, 08:34 PM
Was trying to edit my last post but do not see the edit anymore.

I would like the arrow to only display when there are subfolders or when there are files in the subfolder.  I am using the file tree view and it is showing a right arrow next to all folders then when you click a folder if it is empty then the arrow disappears.  How can it be set to not display if folder is empty?
0
Vessy
Telerik team
answered on 11 Apr 2014, 11:22 AM
Hi Frank,

By design RadFileExplorer should show arrows/plus signs only before the folders which are not empty. This is not valid, though, when we are speaking about root folders. When you have more than one root folder, only the first one's content will be listed on load - the other root folders content will be checked on demand and until then a plus sign will be shown. If these are the arrows you do not want to appear - I am afraid that currently this behavior cannot be controlled.

If you have arrows before each nested folder, though - this behavior is unexpected and will need to investigate the exact configuration what is causing the issue. It will be really helpful if you send us a sample fully runnable project demonstrating the case so we could examine it on our side.

Kind regards,
Vessy
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
FileExplorer
Asked by
Frank
Top achievements
Rank 1
Answers by
Frank
Top achievements
Rank 1
Vessy
Telerik team
Share this question
or