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

    Hello

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

    Thanks
  2. Aneliya Petkova
    Admin
    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:
    http://demos.telerik.com/aspnet-ajax/treeview/examples/applicationscenarios/customattributes/defaultcs.aspx
    http://docs.telerik.com/devtools/aspnet-ajax/controls/treeview/custom-attributes/using-custom-attributes-at-the-client

    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.

    Regards,
    Aneliya Petkova
    Telerik
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top