Radmenu width inconsistent based on skin

2 posts, 0 answers
  1. Moon
    Moon avatar
    250 posts
    Member since:
    Apr 2008

    Posted 18 Nov 2008 Link to this post

    Q3 2008 asp.net ajax controls

    I am 2 menu items. I am setting the width of my radmenu to 800.

    the width of my page is 800.

    I am setting the webblue skin to 800, but it is too wide. To make it the same width, I have to set it to 740.

    If I change the skin, it changes the width, even though I still have two menu items and teh width is 740.

    The width is just not consistently the same width even though I'm not changing the code. Just the skin.

    How can I get a consistent width and why is it not?

            With menSite
                .DataFieldID = "menuId"
                .DataFieldParentID = "parentMenuId"
                .DataNavigateUrlField = "menuURL"
                .DataTextField = "menuName"
                .DataValueField = "menuId"
                .DataSourceID = "SqlDataSource1"
                .CollapseAnimation.Type = AnimationType.OutQuint
                .CollapseAnimation.Duration = "200"
                .Width = "740"
            End With

    thanks.
  2. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2527 posts

    Posted 19 Nov 2008 Link to this post

    Hello Moon,

    The problem is caused by padding and borders, added to the RadMenu container, which mess up with the width (e.g. if you specify a width of 100%, the control gets 100% + border width + paddings in width).

    The problem will be fixed for the upcoming SP1 release. Your Telerik points have been updated for the report.

    Regards,
    Alex
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top