|
Rank: Advanced Member Groups: Member
Joined: 6/14/2007 Posts: 83
|
Hi,
I have a FileExplorer control that I use to have users select a file from a folder structure then return the selected file to the caller page.
I would like to have the embedded TreeControl to expand all its subfolders upon loading up. I don't seem to find the option to achieve that.
Is is possible?
Thanks
Steve Komaromi
Computer Systems Manager, Lead Developer Business Risk Partners, Inc. Tel: 1-(860)-903-0039
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
I don't think you can do that. The TreeView in file explorer is populated on demand. So child nodes (child folders) are only populated when you expand the parent node.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 6/14/2007 Posts: 83
|
Hi,
Thanks for the reply. I do not want to populate all the child nodes just expand the top node (RootFolder) for the first level of folders to be displayed when the FileExplorer comes up. I thought maybe I can call for a function in code behind at load to expand them. I tried the "ExpandAll", but appearently misunderstood its function.
I do however have two more questions.
In the file pane of the FileExplorer, can I have the file's modified date displayed and sortable just like the name and the file size?
Because I display only one type of files through extension filtering, can I have my own file icon displayed for each file in the icon column?
Thanks
Steve Komaromi
Computer Systems Manager, Lead Developer Business Risk Partners, Inc. Tel: 1-(860)-903-0039
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
It doesn’t matter whether you wish to populate all child nodes or just child nodes of the top node. Child nodes are populated on demand only.
Currently you cannot add additional column based on the file data (such as modified date). However you can add your own icon column if the icon is the same for all rows. You would just put a StaticColumn in your Grid and set the column's Text to something like '<img src='your_icon' />".
Hope this helps.
Thanks
|
|
Rank: Advanced Member Groups: Member
Joined: 6/14/2007 Posts: 83
|
Hi,
Oh well, it is too bad I can not pre-populate the list or add the date. It was not a necessity, just the way of making the utility more useable with less clicks.
The static icons works great.
Thanks
Steve Komaromi
Computer Systems Manager, Lead Developer Business Risk Partners, Inc. Tel: 1-(860)-903-0039
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You can always do that by using a TreeView and a Grid control separately. The idea is the FileExplorer control is pretty much just these two controls works together in a certain predefined way. It provides a quick and easy out of box solution with limited options. We could add all possible options to FileExplorer control, but in the end it would probably be more straight forward to use the TreeView control and the Grid control directly if you really want to have control over every detail.
Thanks!
|
|