Aug 06, 2012, 2:10 PM
Export TreeGrid with AsyncTreeNode and Dynamic Load
Hello,
have a nice day to everyone.
I write in this forum to ask you a little help.
I have a report with a TreeGrid in which the root is an AsyncTreeNode.
Then I correctly dynamically load the children nodes with the following function:
I thought to scan with JS the ids of the nodes, than pass them to a direct method for rebuild the content and then exporting.
Is it possibile to call exportation via Direct Method?
Or how can i proceed, if necessary, in a different way?
Thank you!!
have a nice day to everyone.
I write in this forum to ask you a little help.
I have a report with a TreeGrid in which the root is an AsyncTreeNode.
Then I correctly dynamically load the children nodes with the following function:
var nodeLoad = function (node) {
if (node.leaf != true) {
Ext.net.DirectMethods.NodeLoad(node.id, {
success: function (result) {
if (result != "") {
var data = eval("(" + result + ")");
node.loadNodes(data);
}
},
failure: function (errorMsg) {
Ext.Msg.alert('Failure', errorMsg);
}
});
}
else {
return false;
}
}
Is there anyway to export the content of the TreeGrid ? The perfect thing will be an Excel exportation.I thought to scan with JS the ids of the nodes, than pass them to a direct method for rebuild the content and then exporting.
Is it possibile to call exportation via Direct Method?
Or how can i proceed, if necessary, in a different way?
Thank you!!