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

fireCommand and AjaxLoadingPanel

6 Answers 50 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Dmitry
Top achievements
Rank 1
Dmitry asked on 05 Oct 2011, 11:14 AM
Hello,
I have an ajaxified grid and RadAjaxManager set up properly on page. When I use default grid edit/update/delete buttons, loadingpanel shows ok. But when I use clientside fireCommand("", ""), page still fires postback event but loadingpanel won't ever show. What can I do about this?
Thank you.

6 Answers, 1 is accepted

Sort by
0
Dmitry
Top achievements
Rank 1
answered on 06 Oct 2011, 11:12 AM
Anyone?
And 1 more question. I call web service from client code and I want to show loading panel before call and hide it in the webservice callback function. Is that possible?
0
Iana Tsolova
Telerik team
answered on 07 Oct 2011, 05:43 AM
Hi Dmitry,

Check out this demo. For the first issue, is it a regular postback that happend or ajax request when you call fireCommand("", "")?

Regards,
Iana Tsolova
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Dmitry
Top achievements
Rank 1
answered on 07 Oct 2011, 08:24 AM
Thank you for the link.
As for postback - as far as I know, fireCommand initiates a regular postback, not an ajax request.
0
Iana Tsolova
Telerik team
answered on 09 Oct 2011, 02:36 PM
Hello Dmitry,

fireComand() initiates post to the server. And if the grid is ajaxified ajax should be performed. If the grid is not ajaxified a regular postback should happen.

Best wishes,
Iana Tsolova
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Dmitry
Top achievements
Rank 1
answered on 09 Oct 2011, 02:56 PM
Hello, Thank you for clarifying what is what :) I just didn't understand you correctly. As you may see from my 1st post, grid is ajaxified so all request seem to be ajax requests. So when postbacks initiated by default buttons, everything works fine, and when I call fireCommand from client code, panel won't show. Thank you
0
Iana Tsolova
Telerik team
answered on 09 Oct 2011, 05:06 PM
Hello Dmitry,

Basically, there could be two reasons for the loading panel not to be displayed: 1. Javascript error is thrown; 2. Not ajax request but a regular postback is invoked.
Can you send the code of the problematic page, so I try replicating it in a runnable sample and thus try finding what went wrong?

Kind regards,
Iana Tsolova
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Ajax
Asked by
Dmitry
Top achievements
Rank 1
Answers by
Dmitry
Top achievements
Rank 1
Iana Tsolova
Telerik team
Share this question
or