Use Menu like (Slide/Drawer)

4 posts, 1 answers
  1. Armin
    Armin avatar
    10 posts
    Member since:
    May 2011

    Posted 18 Sep 2011 Link to this post

    Hi every one.
    I use rad menu in my project. i need that menu items Be (Open to Click), and when i click on one of root items, Child items open between Root items in same layer.
    I mean root items move like Drawer and Child items of one of them(That i clicked), come between them, till i click on another root item. so if i click another one, this drawer closed and another drawer open between root items.

    Is there any suggestion?
    Thanks in advance.
  2. Armin
    Armin avatar
    10 posts
    Member since:
    May 2011

    Posted 19 Sep 2011 Link to this post

    Hi, also this idea is good.
    One TreeView that i can click on Node for see childs, not + Next to Items for expanding,Just One Click on Node For expanding and see child Nodes and Again One click on node for closing child tree. And hide + Next to Nodes.
    Thanks in advance.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Answer
    Kevin
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 22 Sep 2011 Link to this post

    Hello Armin,

    To answer you first question, you should the RadPanelBar control as that works like a slide/drawer.

    To answer your second question, to expand/collapse a node in the RadTreeView, you can handle the OnClientNodeClicked event and toggle the expand/collapse of the node being clicked. Like so:

    function tvMyReports_OnClientNodeClicked(sender, args) {
                    var node = args.get_node();
                    node.toggle();
    }

    I hope that helps.
  5. Armin
    Armin avatar
    10 posts
    Member since:
    May 2011

    Posted 25 Sep 2011 Link to this post

    Hi Kevin.
    Thank u so much. i tried radpanel and it worked.
Back to Top