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

How can I know when Page is ready?

3 Answers 279 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Søren Hartig
Top achievements
Rank 2
Søren Hartig asked on 09 Sep 2011, 02:36 PM
Together with Telerik components I'm using jQuery 1.6.2

What I'm trying to know is if there is a client event that tells me when does all controls ready, as the page still keeps loading Telerik javascript even after jQuery Document Ready and DOM Ready.

So I can hide the "Loading" div...

Thank you.

3 Answers, 1 is accepted

Sort by
0
Accepted
Genady Sergeev
Telerik team
answered on 12 Sep 2011, 11:58 AM
Hello Søren Hartig,

Please use the client-side page load event. You can subscribe to it with the following code:

Sys.Application.add_load(function() { // this is the page load handler } );

The client side page_load event is fired when all controls are initialized and ready to be used/manipulated.

All the best,
Genady Sergeev
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
JeffSM
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 01 Jun 2018, 02:39 PM
Dear, this is not working. I'm using the last version of VS 2017 and last version of telerik.
0
Rumen
Telerik team
answered on 04 Jun 2018, 08:48 AM
Hi Jeff,

The Sys.Application.load is a standard ASP.NET Web Forms event, which is raised after all scripts have been loaded and the objects in the application have been created and initialized. 

Many of the Telerik ASP.NET AJAX components offer an OnClientLoad client-side event, which occurs at the end if the initialization of client-side object of the respective control.
 

Best regards,
Rumen
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
ScriptManager and StyleSheetManager
Asked by
Søren Hartig
Top achievements
Rank 2
Answers by
Genady Sergeev
Telerik team
JeffSM
Top achievements
Rank 2
Iron
Veteran
Iron
Rumen
Telerik team
Share this question
or