Justin

A basic C# ASP.net page has a single RadGrid on a page. A RadButton with ​Auto​PostBack=false has an OnClientClicked client-side handler function assigned. This function does some long operations, so I would like to show the AjaxLoadingPanel while the browser is busy, even though there isn't any actual Ajax retrievalgoing on. But it seems as if the OnClientClicked event somehow disables or defers the call to the show method of the AjaxLoadingPanel. The panel and spinner does show up, but only after the long client-side operations are complete. Is this by design? Is there an easy work-around?

Maria Ilieva

I tried to replicate the described issue locally but the presented code works properly on my end. Find attached my test application and verify what the difference in your case is.

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

Justin

Thanks for the suggestion. I should have specified this is a batch-edit mode radgrid, and I do not wish to have the button post back, but instead it initiates long-running client-side script to do stuff like validate the radgrid contents or modify values in the radgrid or select certain rows in radgrid. Eventually user would click a different button to submit the batch of changes.

-Justin

Justin

Thanks for the reply. I am still unable to see the waiting spinner loading panel during the long running client-side function. I tried this in IE9, IE10, and chrome canary. I sometimes see the spinner appear briefly after the superslow function is finished. Maybe my "superslow" function wasn't superslow enough to be a good illustration. I made small modification to the project to stretch that out. Here is a screen capture from my workstation:

http://imagebin.ca/v/2IxJagd0a8mP

Interestingly, in chrome canary, after the long run is complete, the panel shows up briefly, maybe two seconds and then hides. But again, not until after the long run is finished.

- Justin

Maria Ilieva

As we are not able to replicate the problem on our end It will be best if you can open a regular support ticket and send us sample runnable version of your application that demonstrates the problem. Thus we will be able to debug it locally and do our best to isolate the root cause of the issue.

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

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.