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

RadMenu is disappearing when using grid w/ ajax w/ master page

2 Answers 88 Views
Menu
This is a migrated thread and some comments may be shown as answers.
cayates
Top achievements
Rank 1
cayates asked on 16 May 2008, 02:05 PM
Hello,

I have a RadMenu and a RadGrid on a single page.  I also have a RadAjaxManager to enable ajax on the grid.  The grid has AllowAutomaticInserts turned on with EditMode = InPlace.  When the user clicks "Add new" it does it's AJAX thing and sets it up to insert a new row.

Everything works fine until I set this page to use a master page file.  Then what happens is about 2 to 3 seconds after the user clicks "Add new" the menu will disappear.

It seems to be a bug and if so I'm hoping I can get a workaround.  Thank you.

2 Answers, 1 is accepted

Sort by
0
cayates
Top achievements
Rank 1
answered on 16 May 2008, 02:29 PM

Well, I noticed the following code appeared in my master page file somehow.  I have no idea how it got there and I'm positive I didn't put it there as I've never seen this CSS before.  I decided to remove it to see what would happen and it fixed the problem.

Here is what it added:

    <style type="text/css">  
 
 
.RadMenu  
{  
    white-space:nowrap;  
    float:left;  
    position:relative;  
}  
 
.RadMenu ul.rmRootGroup  
{  
    float:none;  
}  
 
 
.RadMenu ul.rmRootGroup  
{  
    display:block;  
}  
 
.RadMenu ul.rmHorizontal  
{  
    margin:0;  
    padding:0;  
    display:none;  
    position:relative;  
    left:0;  
    float:left;  
}  
 
.RadMenu .rmHorizontal .rmItem  
{  
    clear:none;  
}  
 
.RadMenu .rmItem  
{  
    float:left;  
    position:relative;  
    list-style-image: none;  
    list-style-position:outside;  
    list-style:none;      
}  
 
.RadMenu a.rmLink  
{  
    cursor:default;  
    display:block;    
}  
 
 
.RadMenu .rmLink  
{  
    width:auto;  
}  
 
.RadMenu_Telerik .rmLink  
{  
    text-decoration:none;  
    color: #666;  
    line-height: 22px;  
    background: #fefefe url(mvwres://Telerik.Web.UI, Version=2008.1.415.35, Culture=neutralPublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Telerik.Menu.MainItemBackground.gif) repeat-x;  
    border-left: 1px solid #dbdbdb;  
    border-right: 1px solid #dbdbdb;  
}  
 
.RadMenu .rmText  
{  
    display:block;  
}  
 
.RadMenu_Telerik .rmText  
{  
    font-size: 11px;  
    padding: 0px 24px;  
    font-family: Arial, Verdana;  
}  
 
    </style> 

Did that get added automatically somehow?

Thanks.
0
Rosi
Telerik team
answered on 17 May 2008, 01:14 PM
Hi Cayates,

This css can be added automatically by dragging the control from the toolbox and moving it to the design surface. There was a similar problem with RadControls for ASP.NET before, but it is already fixed. Also we are not aware of this problem with our RadMenu for ASP.NET AJAX. We will appreciate if you can send us instructions how to recreate the issue locally.


Regards,
Rosi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Menu
Asked by
cayates
Top achievements
Rank 1
Answers by
cayates
Top achievements
Rank 1
Rosi
Telerik team
Share this question
or