Welcome Guest Search | Active Topics | Sign In | Register

File Explorer Client Events Options
DH
Posted: Tuesday, November 17, 2009 3:17:14 PM
Rank: Member
Groups: Member

Joined: 11/19/2007
Posts: 25
I put a File Explorer (Custom Layout - Folder Only) in a Slide Menu (Nesting Controls) custom item.

I'd like to use the same File Explorer event that normally causes the update of the File Explorer FileGrid to initiate my own callback.

Is that possible? If so, how would that be accomplished?
eo_support
Posted: Tuesday, November 17, 2009 3:27:23 PM
Rank: Administration
Groups: Administration

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

Unfortunately that is not possible. When you use Folder Only view, other elements such as the Grid and the Uploader are not rendered at all. Thus it is not possible for you to "re-use" them because they do not even exist in the page.

Thanks
DH
Posted: Tuesday, November 17, 2009 4:12:39 PM
Rank: Member
Groups: Member

Joined: 11/19/2007
Posts: 25
I don't want to use elements that are not rendered. I want use an event of the Folder treeview that is rendered. The one that normally causes the Grid to update. I was unable to use a normal treeview or treenode event I presume because it is wrapped in another control. What event fires when a folder is clicked? I want to use it for my own callback.
eo_support
Posted: Tuesday, November 17, 2009 5:04:07 PM
Rank: Administration
Groups: Administration

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

I believe you can handle the TreeView's ClientSideOnItemMouseDown (not ItemClick) event and then fire whatever you would like to fire from that handler. You will need to delay the call inside your handler so that the FileExplorer's code (which handles ItemClick) gets executed first. Your handler can be something like this:

Code: JavaScript
function item_mousedown_handler(e, info)
{
    setTimeout(function()
    {
        //Change the following code to the code you want
        //to execute when node is selected
        alert(info.getItem().getText());
    }, 100);
}


Thanks
DH
Posted: Tuesday, November 17, 2009 11:31:22 PM
Rank: Member
Groups: Member

Joined: 11/19/2007
Posts: 25
Yes that works. 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.