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