RadTreeView - Adding Nodes Client Side

6 posts, 0 answers
  1. Seth
    Seth avatar
    90 posts
    Member since:
    Jun 2007

    Posted 19 Mar 2008 Link to this post

    When adding nodes to a treeview on the client side, is it possible to add custom attributes as well?

    Seth
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 19 Mar 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Seth
    Seth avatar
    90 posts
    Member since:
    Jun 2007

    Posted 19 Mar 2008 Link to this post

    Thank you.  Is this documented somewhere?

    What about setting the node image? (ImageUrl)

    Seth
  5. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 20 Mar 2008 Link to this post

    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
  6. Seth
    Seth avatar
    90 posts
    Member since:
    Jun 2007

    Posted 20 Mar 2008 Link to this post

    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
  7. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 20 Mar 2008 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017