Hello Telerik,
is there a possibility to select an uploaded file after async upload?
I've tried it on OnClientFolderChange but the event fired too early.
is there a possibility to select an uploaded file after async upload?
I've tried it on OnClientFolderChange but the event fired too early.
function OnClientFolderChange(sender, args) { var oUpload = $find("<%= FileExplorer1.AsyncUpload.ClientID %>"); if (oUpload.getUploadedFiles().length > 0) { var ex = GetFileExplorer(); selectSpecificFile(ex, oUpload.getUploadedFiles()); } } function selectSpecificFile(explorer, items) { var tree = explorer.get_tree(); if (tree != null) { var nodes = tree.get_selectedNodes(); if (nodes != null && nodes.length > 0) { if (nodes[0]._children != null) { for (var i = 0; i < items.length; i++) { for (var x = 0; x < nodes[0].get_allNodes().length; x++) { var currentNode = nodes[0].get_allNodes()[x]; if (currentNode.get_text() == items[i]) { currentNode.select(); } } } } } } }