我有一個RadFileExplorer,我的問題是我無法找到一種方式來關閉JavaScript後彈出頁面關閉節點。我的代碼不起作用。使用Javascript摺疊RadFileExplorer
function collapseNodes() {
$find("<%= RadAjaxPanel1.ClientID%>").ajaxRequestWithTarget("<%= RadAjaxPanel1.UniqueID %>", "Refresh");
var explorer = $find("<%=RadFileExplorer1.ClientID%>");
var tree = explorer.get_tree();
var nodes = tree.get_allNodes(); --> this part is not working
nodes.forEach(function(node) { --> this part is not working
if (node.get_expanded()) --> this part is not working
node.set_expanded(false);--> this part is not working
});
}
<telerik:RadFileExplorer runat="server" ID="RadFileExplorer1" Width="100%" EnableOpenFile="false"
EnableCreateNewFolder="true" OnItemCommand="RadFileExplorer1_ItemCommand" OnExplorerPopulated="RadFileExplorer1_ExplorerPopulated"
DisplayUpFolderItem="false" >
<keyboardshortcuts delete="delete" uploadfile="Ctrl+u" newfolder="Ctrl+n" />
</telerik:RadFileExplorer>