This is a migrated thread and some comments may be shown as answers.

Loading Panel Compatibility with Composite Controls

3 Answers 253 Views
AjaxLoadingPanel
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 2
Iron
Brian asked on 10 Feb 2016, 02:58 PM

 

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" />

3 Answers, 1 is accepted

Sort by
0
Accepted
Maria Ilieva
Telerik team
answered on 11 Feb 2016, 09:20 AM
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
0
Brian
Top achievements
Rank 2
Iron
answered on 11 Feb 2016, 01:20 PM

This fixed my issue.  Thanks! 

[quote]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

[/quote]

 

0
Maria Ilieva
Telerik team
answered on 12 Feb 2016, 02:33 PM
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
Tags
AjaxLoadingPanel
Asked by
Brian
Top achievements
Rank 2
Iron
Answers by
Maria Ilieva
Telerik team
Brian
Top achievements
Rank 2
Iron
Share this question
or