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

3 posts, 0 answers
  1. cayates
    cayates avatar
    71 posts
    Member since:
    Feb 2007

    Posted 16 May 2008 Link to this post

    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. cayates
    cayates avatar
    71 posts
    Member since:
    Feb 2007

    Posted 16 May 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 17 May 2008 Link to this post

    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
Back to Top