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

VirtualModeCreateChildren Question

Last post 11/18/2008 9:17 AM by Alexey M (Developer Express). 7 replies.
Page 1 of 1 (8 items)
Sort Posts:
Previous Next
  • 9/12/2008 6:07 PM

    • Eric_1
    • Not Ranked
    • Joined on 9/11/2008
    • Posts 3

    VirtualModeCreateChildren Question

    I am creating a virtual TreeList and have handlers for the the VirtualModeCreateChildren and VirtualModeNodeCreating events. Everything works great when I create the top level. When you try to expand one of the top level items the handler for the VirtualModeCreateChildren event fires and calls the appropriate function.  However the EventArgs is null and the sender object doesn't contain any information as to which object is the parent object.

    How do you find the parent object when expanding the treelist?

  • 9/24/2008 6:17 AM In reply to

    Re: VirtualModeCreateChildren Question

    Hi,

    It sounds weird that the EventArgs is null.
    Could you please upload a project that demonstrates this behavior?

    Thanks, Alexey M
    R&D, .NET Team
    Developer Express Inc.

    PS. If you wish to receive direct assistance from our Support Team, use Support Center at http://www.devexpress.com/Support/Center
  • 10/7/2008 3:32 PM In reply to

    Re: VirtualModeCreateChildren Question

    I'm getting the same null args here. What is the status of this issue?

     

  • 10/7/2008 4:02 PM In reply to

    Re: VirtualModeCreateChildren Question

    LOL, looks like it fires VirtualModeCreateChildren event for each level, that's why...

    Resolved. Disregard.

  • 10/16/2008 6:46 AM In reply to

    Re: VirtualModeCreateChildren Question

     

    Hello, I've same (I guess) issue and thus general question about how  VirtualMode works.  

    So, for me, when user expands any node,  and server event is fired - TreeView loses its info on all nodes. Its empty. And then it rebuilds all nodes from the root, including new elements in last expanded node.

    Is that a correct behavior ?

     

  • 10/29/2008 2:08 AM In reply to

    Re: VirtualModeCreateChildren Question

    The same here.

    It´s wired... What´s the point of the visual mode if the tree is constructed from the scratch everytime the user interacts with it? (even when he selects a node)

    I´m storing all nodes I have created in the session now, that solves the problem in a way.

    But like Nick said: "Is that a correct behavior ?"

  • 11/18/2008 8:36 AM In reply to

    Re: VirtualModeCreateChildren Question

    Nick Walkovskiy:
    Is that a correct behavior ?

    Can we have an answer on this, please ?

  • 11/18/2008 9:17 AM In reply to

    Re: VirtualModeCreateChildren Question

    Hi Nick,

    Yes, this behavior is by design. We decided not to store nodes in the ViewState. Nodes must be re-created every time the page is reloaded.
    Of course, sometimes it is expensive to create nodes every time. In this case you may easily cache them in the ViewState / SessionState using the key->value hashtable.

    Thanks, Alexey M
    R&D, .NET Team
    Developer Express Inc.

    PS. If you wish to receive direct assistance from our Support Team, use Support Center at http://www.devexpress.com/Support/Center
Page 1 of 1 (8 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED