in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

Node Expanding Event

Last post 10/27/2008 8:12 AM by Laura Piono. 0 replies.
Page 1 of 1 (1 items)
Sort Posts:
Previous Next
  • 10/27/2008 8:12 AM

    Node Expanding Event

    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

Page 1 of 1 (1 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED