RadMenu: Error Rendering Control (encapsulation issue?)

4 posts, 0 answers
  1. Jeremy
    Jeremy avatar
    11 posts
    Member since:
    Nov 2009

    Posted 02 Dec 2009 Link to this post

    I upgraded to the developer controls from the demo, and now I get the following in the design view.

    RadMenu - (RadMenuName)
    There was an error rendering the control.  Specified method is not supported.

    I haven't changed the page.

    The control is encapsulated in a custom control (that worked until the upgrade)

    <%@ Control Language="C#" AutoEventWireup="true" CodeFile="BottomMenu.ascx.cs" Inherits="BottomMenu" %> 
    <table style="width:1000px;" border="0" cellpadding="0" cellspacing="0">  
        <tr> 
            <td style="width:125px">&nbsp;</td> 
            <td style="width:875px">  
                <table border="0" cellpadding="0" cellspacing="0">  
                    <tr> 
                        <td width="230">&nbsp;</td> 
                        <td> 
                            <telerik:RadMenu ID="RadMenuBottom" runat="server" Flow="Horizontal">  
                                <ExpandAnimation Duration="1" /> 
                                <CollapseAnimation Duration="1" /> 
                                <Items> 
                                    <telerik:RadMenuItem Text="Privacy Policy"></telerik:RadMenuItem> 
                                    <telerik:RadMenuItem Text="|" IsSeparator="true"></telerik:RadMenuItem> 
                                    <telerik:RadMenuItem Text="Webmaster"></telerik:RadMenuItem> 
                                    <telerik:RadMenuItem Text="|" IsSeparator="true"></telerik:RadMenuItem> 
                                    <telerik:RadMenuItem Text="Contact Us"></telerik:RadMenuItem> 
                                    <telerik:RadMenuItem Text="|" IsSeparator="true"></telerik:RadMenuItem> 
                                    <telerik:RadMenuItem Text="CCS"></telerik:RadMenuItem> 
                                    <telerik:RadMenuItem Text="|" IsSeparator="true"></telerik:RadMenuItem> 
                                    <telerik:RadMenuItem Text="IEL"></telerik:RadMenuItem> 
                                    <telerik:RadMenuItem Text="|" IsSeparator="true"></telerik:RadMenuItem> 
                                    <telerik:RadMenuItem Text="SCC"></telerik:RadMenuItem> 
                                </Items> 
                            </telerik:RadMenu> 
                        </td> 
                        <td width="230">&nbsp;</td> 
                    </tr> 
                    <tr> 
                        <td colspan="3" align="center">Spokane Falls Community College - 3410 W. Fort George Wright Dr. - Spokane, WA 99224-5288  
    For general information call: 509-533-3500 or 888-509-7944  
                        </td> 
                    </tr> 
                    <tr> 
                        <td colspan="3" align="center">&copy;2007-2009 Spokane Falls Community College. All rights reserved</td> 
                    </tr> 
                </table> 
            </td> 
        </tr>      
    </table> 

    which is referenced on the actual page by the register command:

    <%@ Register TagPrefix="BottomMenu" TagName="SFCCBottomMenu" Src="~/_controls/BottomMenu.ascx" %> 
     
     
    and set on the page as follows:
        <div id="bottomMenu" style="width:1000px">  
            <BottomMenu:SFCCBottomMenu runat="server" /> 
        </div> 

    The page actually renders perfectly, (and should because nothing supposedly changed).... however the design view in VS is reporting the error.

    btw: Going into the control itself and the design view works fine.

    ideas?
  2. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 03 Dec 2009 Link to this post

    Hi Ray,

    I'm not sure why could this behavior occur.
    I just prepared a small website, using the code you sent us. Can you please, extract it locally and load it in design mode in your IDE?
    If it renders correctly, that might mean that there is some code in the user control initialization, that throws the error.
    Otherwize that might mean that the problem is caused by the machine setup regarding the RadControls assembly location.

    Let me know the results so that I can help further.

    P.S. Please note, as this is a public forum, the test application I'm sending hereby contains the trial assemblies. To use the dev ones, please, replace them with the ones from your distribution.

    Best regards,
    Erjan Gavalji
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jeremy
    Jeremy avatar
    11 posts
    Member since:
    Nov 2009

    Posted 03 Dec 2009 Link to this post

    It seems I got a failure on a load of one of the assemblies upon load of VS.  I removed the installation, rebooted, reinstalled and now everything is fine.   Somehow upon upgrade something must of gotten out of sync.   Sorry for wasting your time.

    It was really odd because the only controls that had any issue (only in design mode, not in rendering) were the controls wrapped in a custom user control, if they were directly on the page they were showing properly.  
  5. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 03 Dec 2009 Link to this post

    Hi Ray,

    Not a problem, glad to know everything is fine now.

    It is indeed strange to have this kind of a designer failure. I just did a quick search, but I was not able to find any related information on the net. Anyways, we will be able to catch the problem if it happens once more.

    Best,
    Erjan Gavalji
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top