Sorting taxonomies - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

Sorting taxonomies

  • Sorting taxonomies
  • Hi,

    Some time ago we managed to create a custom TaxonomyControl. It's bound by Taxonomy-Guid to Sitefinity in order to get the required items.
    _tax is a dictionary with key: Taxonomy-Guid and value: stringarray with name / title. 


    TaxonomyControl t = new TaxonomyControl()

    ContentId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
    Enabled = true,
    EnableViewState = true,
    FieldName = kp.Value[1],
    ID = "CC_" + _tax.Keys.ToList().IndexOf(kp.Key),
    RenderAs = TaxonomyControl.RenderTaxonomyAs.VerticalList,
    SeeAllTextFormat = "All (0) 1",
    ShowItemCount = true,
    TabIndex = 0,
    TaxaCount = 0,
    TaxonomyId = kp.Key,
    Title = kp.Value[0],
    ViewStateMode = ViewStateMode.Enabled,
    Visible = true
    ;

    This works, but now we want the taxa in alphabetical order, and not ordered by ordinal value of the Taxonomy table. There is no property in TaxonomyControl to order them in any other way. How can I make this possible?

    Kind regards,

    Erik Jan
  • Hello Erik,

    This request has been logged to our PITS, where you can track its progress and vote to increase its popularity. 

    All the best,
    Pavel Benov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items