WebServiceSettings error

2 posts, 1 answers
  1. Dan
    Dan avatar
    25 posts
    Member since:
    May 2008

    Posted 08 Feb 2012 Link to this post

    I've found what I think is a bug with the RadMenu control in the newest version of the RadControls (2011.3.1305). I had created a static RadMenu control (i.e. items defined at design time, using the smart tags) before the latest upgrade, and the generated code looked like this:

    <telerik:RadMenu ID="RadMenu2" runat="server">
            <telerik:RadMenuItem runat="server" ImageUrl="..." Text="..." >
                    <telerik:RadMenuItem runat="server" ImageUrl="..." Text="..." NavigateUrl="...">
                    [... several more items ...]
            <ODataSettings InitialContainerName="">

    This worked fine before the upgrade, but after we upgraded to the newest version, I started getting the following error in the Chrome developer console on the page that contained the control:

    Uncaught TypeError: Cannot read property 'Name' of undefined
    (anonymous function)http://[websitename]/:856
    (anonymous function)ScriptResource.axd:3484

    The RadMenu still displayed, but the dropdown wouldn't work, and other RadControls that appeared later on the page didn't work, probably because the browser simply stopped loading scripts at that point. The fix was to comment out the <WebServiceSettings> tag, which made the error disappear and the functionality return to normal. Since it was a static menu anyway, the functioning of the menu wasn't affected. I figured I'd post this here to help others who might have the same problem, and it might also be something the developers would want to patch in a future version of the controls.
  2. Answer
    Genady Sergeev
    Genady Sergeev avatar
    1600 posts

    Posted 13 Feb 2012 Link to this post

    Hello Dan Jones,

    This is a known bug in the Q3 SP1 release of the RadControls. Please take a look at this forum post for details on how to resolve the problem.

    Genady Sergeev
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top