When we open a new radwindow using radopen client-side it doesn't work setting the ShowContentDuringLoad property.
Example code:
var wnd = radopen(sURL, null); wnd.set_showContentDuringLoad(false);
I assume this should work ok?
Regards, Rolf
1 Answer, 1 is accepted
0
Accepted
Vasko
Telerik team
answered on 28 Aug 2024, 07:20 AM
Hi Rolf,
I hope all is well with you!
If ShowContentDuringLoad is set to false, the Window will display a loading image that can be controlled with CSS. Now I assume the issue you're experiencing might be related to one of the following things:
The rendering of the loading panel
External CSS stylings are applied to it
JavaScript errors are thrown in the console.
The easiest way to test this would be with a brand new page with only the button and window, without additional CSS or JavaScript.
I've now created a new Asp.Net web app project with no external css stylings applied and the problem remains - no loading image is shown during load. Also there are no errors thrown in the console. I've attached the project.
Regards, Rolf
Vasko
Telerik team
commented on 29 Aug 2024, 12:46 PM
Hello Rolf,
Thank you for the sample project.
The reason the loading image isn't shown is that the Window is first opened, and after that, the set_showContentDuringLoad(false) function is executed:
functionshowWindow() {
var wnd = radopen("Default2.aspx", null);
wnd.set_showContentDuringLoad(false);
}
This approach, while it opens the Window, is not preferable if you want to customize the Window. The proper way would be to have a Window defined on the page either with the property set to false or set it to false before showing it: