Sorting rad Menu after databinding

3 posts, 0 answers
  1. Mike
    Mike avatar
    524 posts
    Member since:
    Feb 2007

    Posted 31 Mar 2007 Link to this post

    Requirements

    r.a.d.controls version rad Menu 4.x+
    .NET version ASP.NET 1.x / 2.x
    Visual Studio version VS2005
    programming language C# (use converter.telerik.com to convert to VB.NET)
    browser support

    all browsers supported by r.a.d.controls


     
    PROJECT DESCRIPTION
    Sometimes sorting a hierarchical datasource is not possible and sorting each individual menu group is needed instead. This project demonstrates how you can sort a menu after databinding.
  2. Kevin
    Kevin avatar
    549 posts
    Member since:
    Nov 2006

    Posted 13 May 2007 Link to this post

    Good, works fine, just needs one additional line at the beginnining, otherwise root items will not be sorted:

    SortCollection(RadMenu1.Items);   

    also,  make sure you swap all properties needed (not just Text).

  3. Avanish
    Avanish avatar
    2 posts
    Member since:
    Nov 2014

    Posted 11 Nov 2014 Link to this post

    I had tried to implement the posted project concept, but the problem occurred is , It just sorts the text of Menu Items, not the Values and Target URLs. How to fix it?
Back to Top