RadtreeView Clcik event

2 posts, 0 answers
  1. sameer
    sameer avatar
    4 posts
    Member since:
    Sep 2010

    Posted 23 Sep 2010 Link to this post

    HI i am sameer,

    I am using telerik Rad Treeview in DotnetNuke application. I am unable to perform nodeclick event in DotnetNuke application.

    My code look like ..

    In page load i written

    if

     

    (!IsPostBack)

     

    {

     

    RadTreeNode Node = new RadTreeNode();

     

    Node.Text =

    "Questionnaire Type";

     

    Node.ImageUrl =

    "../../images/folder.gif";

     

    Node.ContextMenuID =

    "EmptyFolderContextMenu";

     

    Node.Expanded =

    true;

     

     

    RadTreeNode Node1 = new RadTreeNode();

     

    Node1.Text =

    "Questionnaire Name";

     

    Node1.ContextMenuID =

    "MainContextMenu1";

     

    Node1.Expanded =

    true;

     

     

    RadTreeNode Node2 = new RadTreeNode();

     

    Node2.Text =

    "Question Type";

     

    Node2.Expanded =

    true;

     

    Node1.Nodes.Add(Node2);

     

    RadTreeNode Node3 = new RadTreeNode();

     

    Node3.Text =

    "Question 1";

     

    Node3.Expanded =

    true;

     

    Node2.Nodes.Add(Node3);

    Node.Nodes.Add(Node1);

    RadTreeView1.Skin =

    "Vista";

     

    RadTreeView1.Nodes.Add(Node);

    }


     

    protected void RadTreeView1_NodeClick(object sender, RadTreeNodeEventArgs e)

     

    {

    Label1.Text =

    "NodeClick: " + e.Node.Text;

     

    }



    whn i debug its going to nodeclick event but i didn't get the value of node click value.

    Thanks in advance :)


  2. Yana
    Admin
    Yana avatar
    4897 posts

    Posted 27 Sep 2010 Link to this post

    Hi Sameer,

    The code seems correct. You should set Value property of the nodes in order to get value in NodeClick event handler.

    Regards,
    Yana
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top