get attributes collection

2 posts, 0 answers
  1. Quim
    Quim avatar
    29 posts
    Member since:
    Nov 2006

    Posted 21 Jul 2015 Link to this post


    Is there any way to access custom attributes collection as an array from client side, so that we can loop through all the attributes?

  2. Aneliya Petkova
    Aneliya Petkova avatar
    207 posts

    Posted 22 Jul 2015 Link to this post

    Hi Quim,

    Attributes can be accessed in client-side code using getAttributes() function of a RadTreeNode. More information you may find in our documentation and in the following online demo:

    I made for you an example, showing how you can get all attributes of every RadTreeNode and print the values in a Label. I hope that it will be helpful.

    Aneliya Petkova
    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 Feedback Portal and vote to affect the priority of the items
Back to Top