Skip to content

Use the loading panel's client-side functionality to invoke the panel when a page is loading.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/asp-net-mvc-loading-panel-show-on-page-load

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Loading Panel for ASP.NET MVC - How to show a loading panel when a page is loading

This example demonstrates how to show LoadingPanel when a View is loaded.

Implementation Details

Call the ASPxClientLoadingPanel.Show method in the Init event handler of the first DevExpress MVC Extension of the View to show a loading panel when client-side objects start initializing.

function OnLoadingPanelInit(s, e) {
    s.Show();
}

To hide the loading panel when all client-side objects are already initialized, call the ASPxClientLoadingPanel.Hide method in the Init event handler of the last DevExpress MVC Extension of the View.

function OnLabelInit(s, e) {
    lp.Hide();
}

Files to Review

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)