Way Hang Wee
Top achievements
Rank 1
Way Hang Wee
asked on 10 Mar 2010, 11:09 AM
Hi,
I populate TreeView nodes programmatically as below:
dtModule = LoadModule(strMandatory)
If (dtModule.Rows.Count > 0) Then
For Each drRow In dtModule.Rows
If tnNode.Nodes.FindNodeByText(drRow(0).ToString) Is Nothing Then
tnModule = New Telerik.Web.UI.RadTreeNode
tnModule.Text = drRow(0).ToString
tnModule.Value = drRow(0).ToString
tnModule.ToolTip = drRow(1).ToString
tnNode.Nodes.Add(tnModule)
End If
Next
End If
How can i put a link beside the text of the node? For example:
tnModule.Text = "something"
then at the TreeNode display i would like to have
Something Click here to go yahoo
Pls advise!
Thanks!
I populate TreeView nodes programmatically as below:
dtModule = LoadModule(strMandatory)
If (dtModule.Rows.Count > 0) Then
For Each drRow In dtModule.Rows
If tnNode.Nodes.FindNodeByText(drRow(0).ToString) Is Nothing Then
tnModule = New Telerik.Web.UI.RadTreeNode
tnModule.Text = drRow(0).ToString
tnModule.Value = drRow(0).ToString
tnModule.ToolTip = drRow(1).ToString
tnNode.Nodes.Add(tnModule)
End If
Next
End If
How can i put a link beside the text of the node? For example:
tnModule.Text = "something"
then at the TreeNode display i would like to have
Something Click here to go yahoo
Pls advise!
Thanks!
7 Answers, 1 is accepted
0
Hello Way Hang Wee,
This can be achieved with templates, please check our online example here.
Kind 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.
This can be achieved with templates, please check our online example here.
Kind 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.
0
Way Hang Wee
Top achievements
Rank 1
answered on 12 Mar 2010, 03:35 AM
The example there is defining what to be displayed during design time.
In my case, i want to put the link beside the node during run time programmatically.
How to do that?
In my case, i want to put the link beside the node during run time programmatically.
How to do that?
0
Shinu
Top achievements
Rank 2
answered on 12 Mar 2010, 10:07 AM
Hello Way Hang Wee,
Please go through the following documentation which describes how to add templates at runtime.
Adding and Editing Templates at Runtime
Hope this helps,
Shinu.
0
Way Hang Wee
Top achievements
Rank 1
answered on 15 Mar 2010, 02:34 AM
Hi Shinu,
Can u show me example of putting a link beside the node during run time programmatically.
Can u show me example of putting a link beside the node during run time programmatically.
0
Way Hang Wee
Top achievements
Rank 1
answered on 16 Mar 2010, 03:39 AM
Any update?
0
Way Hang Wee
Top achievements
Rank 1
answered on 16 Mar 2010, 12:11 PM
No response from telerik?
0
Hello Way Hang Wee,
Please find attached a simple page demonstrated the needed approach.
Greetings,
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.
Please find attached a simple page demonstrated the needed approach.
Greetings,
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.