More in this section
Forums / General Discussions / show Categories

show Categories

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Asif
    Asif avatar
    110 posts
    18 Nov 2010
    16 Dec 2010
    Link to this post
    1. I am creating a page in Admin section and I want to put a show categories drop down to show all categories with their sub categories. However, I am using "<sf:ContentCategoriesField ID="Category" runat="server" />" in the same page but I need to change the Id in order to show it again.

    2. Also it doesnt seem to be a "combobox". How can I use the selected item? for example in combo box, I can write "CategoryId.selectedItem"

    Please Help
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    17 Dec 2010
    Link to this post
    Hi Asif,

    1. If you are crating a backend view, you can have only one ContentCategoriesField. When you add a second ContentCategoriesField the value will not be persisted automatically and you should do this manually or create a custom class that extends ContentItemEdit and ContentItemNew view where you need to set the content item Id

    protected override IContent SetContentForm(IContent cnt)
             // call the base
              if (this.CategoriesControl1 != null)
                  this.CategoriesControl1.ProviderName = this.ProviderName;
                  if (cnt != null)
                      this.CategoriesControl1.ContentId = cnt.ID;
              return curruntState;

    2. ContentCategoriesField wraps RadTreeView control which you can access from the external template CategoriesView.ascx. Then you can subscribe for the RadTreeView events.

    The template is located under


    You can gather more information about the external templates at How to map a template

    All the best,
    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