1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Get categories list by parent category

Get categories list by parent category

2 posts, 0 answered
  1. Paul
    Paul avatar
    176 posts
    Registered:
    18 Nov 2008
    01 Jun 2010
    Link to this post

    Hi!

    I need to get categories list by their parent category ID. How can I do this? In developer manual I didn't find something useful.

    Thank you.

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    01 Jun 2010
    Link to this post
    Hello Paul,

    There is a method GetCategoriesTree of ContentManager class that you can use

    IList categoriesTree = manager.GetCategoriesTree(manager.GetCategory(parentID));


    Regards,
    Ivan Dimitrov
    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.
2 posts, 0 answered