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

How do I trigger a post back with ajax?

3 Answers 328 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Nyceane
Top achievements
Rank 1
Nyceane asked on 07 Jul 2008, 08:08 PM
Hey, I've tried to rebind the scheduler and grid but it doesn't update until the page is being refreshed.  I am wondering if there are any ways where I can cause a hard post back with ajax.

Both Response.redirect and ajaxmanager.redirect will cause a post back, can I do it with loading panel on top of these postback with c# code behind?    

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 08 Jul 2008, 04:47 AM
Hello Nyceane,

Generally Response.Redirect and Redirect method of the manager will cause standard redirect not post-back. You cannot show the loading panel during this.

To know more about how to execute normal post back please check this example:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Ajax/Examples/Manager/PartialPostBacks/DefaultCS.aspx

All the best,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Nyceane
Top achievements
Rank 1
answered on 08 Jul 2008, 04:12 PM
is there anyway to juse ajax manager to refresh the entire page?  and using ajacx loading icons to refresh the page instead doing a normal redirect.
0
Konstantin Petkov
Telerik team
answered on 08 Jul 2008, 04:38 PM
Hi Nyceane,

You can wrap the page content in an ASP:Panel for example and set is as ajaxified and updated at the same time so that any postback will be transformed into AJAX request. You can then use the Loading Panel for the same setting.

You may be also interested in centering the loading panel on the screen.

All the best,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
Nyceane
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Nyceane
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Share this question
or