embedding a panelBar inside a UserControl

2 posts, 0 answers
  1. Clive Hoggar
    Clive Hoggar avatar
    349 posts
    Member since:
    Nov 2008

    Posted 28 Oct 2011 Link to this post

    HI guys

    I have a website with two types of master page, but both containing the same panelBar menu.
    For maintainability, I want to have only a single place to update the menu so I thought I should
    put it into ascx UserControl, and followed MS guidelines for the embedding

    It actually works fine if I turn off debug in Internet Explorer (I am using Visual Studio 2010 btw), but when debug is on I get this error

    SCRIPT5007: Unable to set value of the property 'control': object is null or undefined
    3a24ee1bba%3a1e771326%3a4cacbc31, line 6 character 74101

    The ascx file is like this:

    <%@ Control Language="VB" AutoEventWireup="false" CodeFile="menuBar.ascx.vb" Inherits="UserControls_menuBar" %>
    <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
    <telerik:RadPanelBar ID="RadPanelBar1" Runat="server" Skin="myBlack" Width="175px"
                            EnableEmbeddedSkins="False" PersistStateInCookie="True">
    etc etc

    I would like to avoid the error in case it causes problems to visitors.  Can you shed any light on this?
    The error is within the telerik dll it seems.

    Thanks for any help!


  2. Nikolay Tsenkov
    Nikolay Tsenkov avatar
    734 posts

    Posted 02 Nov 2011 Link to this post

    Hello Clive,

    Please, open a support ticket and send us a sample reproducing the problem.

    Nikolay Tsenkov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top