SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a termset with parent term name "State" and with child term "City". I want to show all child terms "City" in a dropdownlist. Who can I retrive only child terms from this termset?

share|improve this question

you need to first finding the termset "State".

for ex: TaxonomySession session = new TaxonomySession(SPContext.Current.Site); // Get a reference to the store TermStore store = session.TermStores[_tTaxonomyField.SspId];

      TermSet _termSet = store.GetTermSet(_tTaxonomyField.TermSetId);

       foreach (Term termSet in _termSet.Terms)
        {
             // all child term found here
        }

hope this help.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.