Hi everyone,
I have a treelist filled in virtual mode. When I expand a node, I want to show a popup that reports the number of children of selected node. I have written this code:
Node Expanding Event:
function(s, e) {
children = treeList.PerformCustomDataCallback(e.nodeKey);
if (parseInt(children) > 200)
e.procressOnServer = confirm('are you sure?');
}
Custom Data CallBack:
function(s, e) {
children = e.result;
return children;
}
Server event:
protected
void ASPxTreeList1_CustomDataCallback(object sender, TreeListCustomDataCallbackEventArgs e) {
string a = e.Argument;
e.Result = 800;
}
This code doesn't work because the 'children' item is alaways undefined. Can you help me?
Thanks,
Laura