This is a migrated thread and some comments may be shown as answers.

Menu group Q3 BUG

2 Answers 70 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Geert
Top achievements
Rank 1
Geert asked on 14 Jan 2009, 08:47 AM
Hello,

We think we found a serious bug in the radmenu of the 2008 Q3 version. I'll try to explain. An example is difficult because time is not on our side.

We have a radmenu positioned on the bottom-left of the screen (6 items)
1) The first item has 8 subitems expanded to the right with a vertical flow => the last items disappear because their is no space available on the screen. In Q2 the items are pushed higher so that all items are visible. Q3 seems to calculate a height and drops the items that do not fit on the screen.

2) We then tried to set autoscrollminimumheight but that clearly has no effect. It is probably for something else which we still have to figure out

3) We set the property DefaultGroupSettings-Height="520" . so the height is fixed and the items fit in the space. The space is now pushed from the bottom of the screen. => Nice space enough BUT
Every new hover over the root menuitem opens the group but makes it smaller, time after time it seems like 20 px from the 520 are being left out eventually it stops removing 20 pixels and it results in the starting problem: the last menuitems our dropped off.

We can provide screenshots but their's no time to provide a project or code.

Hopefully you can figure it out or help us in the right direction

thanks in advance,
The Sofim-team (Belgium)

2 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 15 Jan 2009, 06:12 PM
Hello Geert,

I see what you mean, but I wasn't able to reproduce the same bug locally. I've tested with both Q3 SP1 and SP2. It will be great if you can send us the screenshots. You can't attach files in the forums, but you can do it in a ticket.

I'll try to summarize the options that you have in your scenario. Maybe some of the other options will be acceptable, until we figure out what is wrong.

Let's say that your menu looks like this:

<telerik:RadMenu ID="RadMenu1" runat="server" Skin="Telerik" Flow="Vertical">   
    <Items>
        <telerik:RadMenuItem Text="About us">
            <Items>
                <telerik:RadMenuItem Text="Mission Statement">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="Strategic Plan">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="Executive Bios">
                <!-- ... -->
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="LAST ITEM">
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenuItem>
        <!-- ... -->
    </Items>
</telerik:RadMenu>

This should result in the sub-menu being pushed up, as you have noted. The screenshot "1_Default.png" illustrates this.

We can set the height of the sub-menu like that:

<telerik:RadMenu ID="RadMenu1" runat="server" Skin="Telerik" Flow="Vertical">
    <Items>
        <telerik:RadMenuItem Text="About us">
            <GroupSettings Height="570px" />
            <Items>
                <telerik:RadMenuItem Text="Mission Statement">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="Strategic Plan">
                </telerik:RadMenuItem>


The result is that scrolling is enabled on the sub-menu and it's height matches the property setting (fixed scrolling). See 2_GroupHeight.png.

The third option is to use automatic scrolling:

<telerik:RadMenu ID="RadMenu1" runat="server" Skin="Telerik" Flow="Vertical"
                    EnableAutoScroll="true">   
    <Items>
        <telerik:RadMenuItem Text="About us">
            <Items>
                <telerik:RadMenuItem Text="Mission Statement">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="Strategic Plan">
                </telerik:RadMenuItem>


This way scrolling will only be enabled if there is not enough space on the screen. See 3_AutoScroll.png.

The automatic scroll will not push the sub-menu up until the available space is greater than AutoScrollMinimumHeight. If it's not, the sub-menu will be pushed up and the scroll will be enabled, if necessarily. The last screenshot demonstrates this.

Regards,
Tsvetomir Tsonev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Lien Vandamme
Top achievements
Rank 1
answered on 16 Jan 2009, 08:45 AM
Hello,

OPened a ticket with the user Lien.vandamme@sofim.be

thanks
Tags
Menu
Asked by
Geert
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Lien Vandamme
Top achievements
Rank 1
Share this question
or