Sorting rad Menu after databinding

Thread is closed for posting
3 posts, 0 answers
  1. 0B6465A9-1E50-435C-B637-614B0BBF8608
    0B6465A9-1E50-435C-B637-614B0BBF8608 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. E6D19C2C-8837-4BDE-B3CF-81E666DDA1C2
    E6D19C2C-8837-4BDE-B3CF-81E666DDA1C2 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. 3D927A17-EE9C-42F8-B567-A33C80A56E47
    3D927A17-EE9C-42F8-B567-A33C80A56E47 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

This Code Library is part of the product documentation and subject to the respective product license agreement.