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

RadTreeView - Adding Nodes Client Side

5 Answers 114 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Seth
Top achievements
Rank 1
Seth asked on 19 Mar 2008, 04:37 PM
When adding nodes to a treeview on the client side, is it possible to add custom attributes as well?

Seth

5 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 19 Mar 2008, 05:17 PM
Hi Seth,

Yes, it is possible. You can use the attributes client-side property:

var node = new Telerik.Web.UI.RadTreeNode(); 
node.get_attributes().setAttribute("MyAttribute""MyAttributeValue"); 


Regards,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Seth
Top achievements
Rank 1
answered on 19 Mar 2008, 06:44 PM
Thank you.  Is this documented somewhere?

What about setting the node image? (ImageUrl)

Seth
0
Atanas Korchev
Telerik team
answered on 20 Mar 2008, 07:57 AM
Hi Seth,

You can find more info in our online documentation:
http://www.telerik.com/help/radcontrols/prometheus/?tree_ClientProgramming.html

To set the ImageUrl property you can use the set_imageUrl method.

Regards,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Seth
Top achievements
Rank 1
answered on 20 Mar 2008, 11:53 AM
Thanks Albert, but none of the set functions you have given me are in that documentation.  Is this just a product of an unfinished solution?

Seth
0
Atanas Korchev
Telerik team
answered on 20 Mar 2008, 03:03 PM
Hi Seth,

Indeed our documentation is missing some properties at the time being. We will do our best to fill in the gaps for the Q1 2008 release when the "Beta" tag of "Prometheus" is going to be removed.

Regards,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TreeView
Asked by
Seth
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Seth
Top achievements
Rank 1
Share this question
or