I'm looking for advice on the best way to implement a scheduler in a web app that will have multiple users creating/editing appointments. I need to make sure that every user's schedule is updated periodically.
Performance is always an issue so I'd like to try the new web service feature of RadScheduler. If I do, I don't know how to initiate a refresh from the client (If I were using normal postbacks I'd just do a RadAjaxTimer). Any advice?
As for collisions (two users editing the same appointment) I think I can just deal with that in my Scheduler's data provider.
Performance is always an issue so I'd like to try the new web service feature of RadScheduler. If I do, I don't know how to initiate a refresh from the client (If I were using normal postbacks I'd just do a RadAjaxTimer). Any advice?
As for collisions (two users editing the same appointment) I think I can just deal with that in my Scheduler's data provider.
4 Answers, 1 is accepted
0
Hello,
Thank you for this question.
We plan to implement auto-refresh (with polling) and expose a public Refresh method in the client API of RadScheduler.
Meanwhile, there is a workaround that you can use. Referring to the Ajaxify Timer demo, try the following
Regards,
Peter
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Thank you for this question.
We plan to implement auto-refresh (with polling) and expose a public Refresh method in the client API of RadScheduler.
Meanwhile, there is a workaround that you can use. Referring to the Ajaxify Timer demo, try the following
<script type="text/javascript"> |
function OnRequestStart(sender, eventArgs) |
{ |
refreshSchedulerClientSide(); |
} |
function refreshSchedulerClientSide() |
{ |
var scheduler = $find('<%= RadScheduler1.ClientID %>'); |
scheduler.set_selectedDate(scheduler.get_selectedDate()); |
} |
</script> |
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" |
ClientEvents-OnRequestStart="OnRequestStart" |
UpdatePanelsRenderMode="Inline"> |
Regards,
Peter
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Tree
Top achievements
Rank 1
answered on 25 Mar 2009, 03:59 PM
Peter,
Thanks for the workaround. I assume this will ONLY work when the scheduler is in the regular postback mode (rather than the web service mode). Correct?
Is there any way I can do periodic polling to refresh the scheduler while it is in the web service mode?
Thanks for the workaround. I assume this will ONLY work when the scheduler is in the regular postback mode (rather than the web service mode). Correct?
Is there any way I can do periodic polling to refresh the scheduler while it is in the web service mode?
0
Actually, just the opposite - the workaround is intended to be used when RadScheduler is in web service mode. I believe this is what you asked for. In the Ajaxify Timer demo, you will notice that RadGrid is refreshed from code behind with this code:
public void Timer1_Tick(object sender, EventArgs e) |
{ |
RadGrid1.Rebind(); |
} |
With the workaround I suggested you will not have to call RadScheduler1.Rebind() in the Tick event.
Kind regards,
Peter
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Tree
Top achievements
Rank 1
answered on 25 Mar 2009, 05:26 PM
Thanks! I'll give it a try.