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

Radmenu doesnt render properly

3 Answers 101 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Gaurav Rana
Top achievements
Rank 1
Gaurav Rana asked on 07 Aug 2009, 10:45 AM
Hi,

I have a Grid on a page in which i have done grouping on two columns.

On each row i open a context menu (rad Menu) containing 4 items.

My issue is that when a grouping in the grid have less than 4 Rows, then the RadMenu doesnt render properly.

It shows only 1 or 2 items and rest arent shown.

please let me know if you have a solution.

My RadMenu markup is as follows:

<

 

rad:RadMenu ID="RadMenu1" IsContext="True" runat="server" Skin="Outlook" ContextMenuElementID="none"

 

 

CausesValidation="False" OnClientItemClicking="OnClientItemClicking" OnItemClick="RadMenu1_ItemClick">

 

 

<Items>

 

 

<rad:RadMenuItem ID="RadMenuItem1" Text="View User" Value="UserStatus" runat="server" />

 

 

<rad:RadMenuItem ID="RadMenuItem2" Text="Change Asset Status" Value="ChangeAssetStatus"

 

 

runat="server" />

 

 

<rad:RadMenuItem ID="RadMenuItem8" Text="View System" Value="ViewSystem" runat="server" />

 

 

<rad:RadMenuItem ID="RadMenuItem3" runat="server" Text="Change This Asset Status To"

 

 

Value="ChangeThisStatus">

 

 

<Items>

 

 

<rad:RadMenuItem ID="RadMenuItem4" runat="server" Text="Available">

 

 

</rad:RadMenuItem>

 

 

<rad:RadMenuItem ID="RadMenuItem5" runat="server" Text="Occupied">

 

 

</rad:RadMenuItem>

 

 

<rad:RadMenuItem ID="RadMenuItem6" runat="server" Text="To be Available">

 

 

</rad:RadMenuItem>

 

 

<rad:RadMenuItem ID="RadMenuItem7" runat="server" Text="Not Working">

 

 

</rad:RadMenuItem>

 

 

</Items>

 

 

</rad:RadMenuItem>

 

 

</Items>

 

 

</rad:RadMenu>

 



Thanks in advance.

3 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 07 Aug 2009, 12:37 PM
Sorry for the multiple edits - here's the code I originally wanted to give you:

<telerik:RadMenu ID="RadMenu1" IsContext="True" Runat="server" Skin="Outlook" ContextMenuElemetID="none" 
        CausesValidation ="False"
        <Items> 
            <telerik:RadMenuItem ID="RadMenuItem1" Text="View User" Value="Userstatus" runat="server" /> 
            <telerik:RadMenuItem ID="RadMenuItem2" Text="Change Asset Status" Value="ChangeAssetStatus" runat="server" /> 
            <telerik:RadMenuItem ID="RadMenuItem8" Text="View System" Value="ViewSystem" runat="server" /> 
            <telerik:RadMenuItem ID="RadMenuItem3" runat="server"  
                Text="Change This Asset Status To" Value="ChangeThisStatus" > 
                <Items> 
                    <telerik:RadMenuItem ID="RadMenuItem4" runat="server" Text="Available" /> 
                    <telerik:RadMenuItem ID="RadMenuItem5" runat="server" Text="Occupied" /> 
                    <telerik:RadMenuItem ID="RadMenuItem6" runat="server" Text="To be Available" /> 
                    <telerik:RadMenuItem ID="RadMenuItem7" runat="server" Text="Not Working" /> 
                </Items> 
            </telerik:RadMenuItem> 
        </Items> 
    </telerik:RadMenu> 

Let me know if that fixes your issue.
0
Gaurav Rana
Top achievements
Rank 1
answered on 07 Aug 2009, 01:13 PM
Thanks for the reply.

I tried your HTML markup for RadMenu (I had to handle 2 events : (OnClientItemClicking, On ItemClick),  even if i didn't find any difference between my code and yours.

But it still doesnt work.

0
Schlurk
Top achievements
Rank 2
answered on 07 Aug 2009, 02:00 PM
Sorry for those events, I didn't take them out from my code. Is there a direct correlation between the number of rows below 4 and how many items are displayed? So if there are 3 rows do only 3 items display or is it always just 1 or 2? Also, does the root row of the menu (View User, Changed Asset Status, View System, Change This Asset Status To) render properly? Since the last item (change this assets status to) has the 4 children I was wondering if that's where you have an issue or if it's the root menu (since it's also four) that doesn't render.

Also, the code was similar - I just used another markup for the menu items to see if it would change anything.
Tags
Menu
Asked by
Gaurav Rana
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Gaurav Rana
Top achievements
Rank 1
Share this question
or