Loading Panel Compatibility with Composite Controls

4 posts, 1 answers
  1. Brian
    Brian avatar
    14 posts
    Member since:
    Aug 2013

    Posted 10 Feb Link to this post

     

    Hi,

    I'm curious as to whether the loading panel is compatibile with composite controls.

    I have created a composite control in an external project and am importing it into my web application.  When I attempt to use the loading panel with the control, I don't see anything as the data loads.

    01.<telerik:RadAjaxManager ID="RadAjaxManagerGrid" runat="server" UpdatePanelsRenderMode="Inline">
    02.    <AjaxSettings>
    03.        <telerik:AjaxSetting AjaxControlID="ShareSelectorGrid">
    04.            <UpdatedControls>
    05.                <telerik:AjaxUpdatedControl ControlID="ShareSelectorGrid" LoadingPanelID="RadAjaxLoadingPanelGrid" />
    06.            </UpdatedControls>
    07.        </telerik:AjaxSetting>
    08.    </AjaxSettings>
    09.</telerik:RadAjaxManager>
    10.<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanelGrid" runat="server" />

    When I instead try to use the subcontrols referenced inside of the composite control, I get an error:

    "Unhandled exception at line 1, column 132567 in http://localhost:8756/bundles/MsAjaxJs?v=c42ygB2U07n37m_Sfa8ZbLGVu4Rr2gsBo7MvUEnJeZ81
    0x800a138f - JavaScript runtime error: Unable to get property 'PRM_MissingPanel' of undefined or null reference"

    Here's the code that generates this error:

    01.<telerik:RadAjaxManager ID="RadAjaxManagerGrid" runat="server" UpdatePanelsRenderMode="Inline">
    02.    <AjaxSettings>
    03.        <telerik:AjaxSetting AjaxControlID="RadButtonAAFCULoadShareIDs">
    04.            <UpdatedControls>
    05.                <telerik:AjaxUpdatedControl ControlID="SymDropDownListShareLoanAAFCUShareIDs" LoadingPanelID="RadAjaxLoadingPanelGrid" />
    06.            </UpdatedControls>
    07.        </telerik:AjaxSetting>
    08.    </AjaxSettings>
    09.</telerik:RadAjaxManager>
    10.<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanelGrid" runat="server" />

  2. Answer
    Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 11 Feb Link to this post

    Hello,

    Try to wrap the composite control into always visible asp Panel and add this panel as updated control in the AjaxSettings. Also please set Skin for the RadAjaxLoadingPanel and see how it goes.


    Regards,
    Maria Ilieva
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Brian
    Brian avatar
    14 posts
    Member since:
    Aug 2013

    Posted 11 Feb in reply to Maria Ilieva Link to this post

    This fixed my issue.  Thanks! 

    Maria Ilieva said:Hello,

    Try to wrap the composite control into always visible asp Panel and add this panel as updated control in the AjaxSettings. Also please set Skin for the RadAjaxLoadingPanel and see how it goes.


    Regards,
    Maria Ilieva
    Telerik

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items

     

  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 12 Feb Link to this post

    Hi Brian,

    I'm glad that the provided solution fix your issue. Do not hesitate to contact us back if further assistance is needed.

    Regards,
    Maria Ilieva
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top