GroupSettings-Width in code behind

5 posts, 0 answers
  1. david
    david avatar
    210 posts
    Member since:
    May 2007

    Posted 23 Jul 2015 Link to this post

    Hi,

     i have a horizontal menu that I would like to restrict to a fixed width and not wrap around, it seem that the  GroupSettings-Width should do the trick. How do I set the  GroupSettings-Width property on the radmenu that I am building in the code behind?

    I'm guessing the property is GroupSettings.Width = Unit.Pixel(750), but on what am I setting this property?

     

    thanks

  2. Aneliya Petkova
    Admin
    Aneliya Petkova avatar
    207 posts

    Posted 24 Jul 2015 Link to this post

    Hi David,

    You need to specify on which item you want to add this group setting. For example:
    RadMenu1.FindItemByText("Item 1").GroupSettings.Width = 700;

    If you want to set GroupSettings on all RadMenuItems, you can use DefaultGroupSettings of RadMenu:
    RadMenu1.DefaultGroupSettings.Width = 700;

    Hope this will be helpful.

    Regards,
    Aneliya Petkova
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. david
    david avatar
    210 posts
    Member since:
    May 2007

    Posted 24 Jul 2015 in reply to Aneliya Petkova Link to this post

    Thank you, but perhaps I did not explain what I wanted, the first example here is what I need (root item scroll ?) 

    http://demos.telerik.com/aspnet-ajax/menu/examples/multicolumnmenu/defaultcs.aspx

     

     

  5. david
    david avatar
    210 posts
    Member since:
    May 2007

    Posted 24 Jul 2015 in reply to david Link to this post

    duh, its really simple "EnableRootItemScroll"
  6. Aneliya Petkova
    Admin
    Aneliya Petkova avatar
    207 posts

    Posted 27 Jul 2015 Link to this post

    Hi david,

    Yes, that's correct - if you need to show a scroll on the root RadMenuItems, you must set Width of the RadMenu and EnableRootItemScroll="true".

    Regards,
    Aneliya Petkova
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017