Welcome Guest Search | Active Topics | Sign In | Register

Need Help with FileExplorer Options
Menon
Posted: Monday, July 6, 2009 2:28:08 AM
Rank: Advanced Member
Groups: Member

Joined: 8/9/2007
Posts: 59
Hi There,

1. I am facing a small problem with FileExplorer.
When i am renaming a folder, it does not allow me to leave a space between words.
Eg: i cannot rename it to New Folder.

2. I dont know if i should open a new topic for this. But it is about the TreeView inside the FileExplorer. I would want the Treeview to be expanded at the 0 level.
Eg: RootFolder="~/Demos/File Explorer/Files". I want the Folder Files to be Expanded, So i can see all the subfolders under it.

Thanks

Menon
eo_support
Posted: Wednesday, July 8, 2009 9:11:41 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

For the first problem, please set the both the FileExplorer and the TreeView's EnableKeyboardNavigation to False.

For the second problem, there is no direct server side interface for that. But you can do it with JavaScript:

Code: HTML/ASPX
<eo:TreeView ID="FolderTree" 
    ClientSideOnLoad="expand_tv_onload" ...>
.....
</eo:TreeView>


Code: JavaScript
function expand_tv_onload()
{
    //Get the root node
    var tv = eo_GetObject("FolderTree");
    var topGroup = tv.getTopGroup();
    var rootNode = topGroup.getItemByIndex(0);

    //Populate the root node
    rootNote.populateOnDemand();
}


Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.