This is a migrated thread and some comments may be shown as answers.

RadtreeView Clcik event

1 Answer 41 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
sameer
Top achievements
Rank 1
sameer asked on 23 Sep 2010, 08:09 AM
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 :)


1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 27 Sep 2010, 10:04 AM
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
Tags
TreeView
Asked by
sameer
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or