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

IsCallBack? IsAsync?

1 Answer 68 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 11 Sep 2008, 05:04 PM
Hi

I am using the RadScheduler control. When switching between say day and month view a .Net Ajax asynchronous callback is made by the control to get the html for the new view

On the sever side I override the page render method to do a bit of work there but need to acertain whether it not it is in "normal postback" mode or "Callback/Async".

I'm watching the IsPostBack IsCallback and IsAsync properties as I reach this page event but it only says that IsPostback is true and the other two false when of course I know full well myself that it's the RadScheduler that invoked the ajax callback. Is this a bug that the IsCallBack or IsAsync is not being set by the rad scheduler or do I have to set a property on it or the RadAjaxManage in order for .Net to report what mode the "postback" is in?

Thanks

Gary

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 12 Sep 2008, 02:30 PM
Hi Gary,

Your observations are correct, RadScheduler always uses postbacks to execute commands. We do not utilize callbacks. It is up to the RadAjaxManager or UpdatePanel to turn this into a partial request. You can use the IsAjaxRequest property of RadAjaxManager to check if you are in an AJAX request at the moment.

Best wishes,
Tsvetomir Tsonev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Gary
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or