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

Delay appointments from being populated

1 Answer 20 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Greg Mercer
Top achievements
Rank 1
Greg Mercer asked on 11 May 2010, 12:05 AM
Hi,

I've been using a web service bound version of the Scheduler control, and have discovered recently that another web service being called on the page is not being allowed to complete successfully, while the Scheduler is populating.

Is there a way to delay when the Scheduler initially begins populating?

Thanks,
Greg

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 14 May 2010, 09:46 AM
Hi Greg,

You can cancel the appointmentsPopulating event and then force a refresh using the following trick:

var initialLoad = true;
function appointmentsPopulating(scheduler, eventArgs)
{
    if (initialLoad)
    {
        initialLoad = false;
        eventArgs.set_cancel(true);
 
        setTimeout(function() { scheduler.set_selectedDate(scheduler.get_selectedDate()); /* force refresh */ }, 2000 /* ms */);
    }
}

<telerik:RadScheduler runat="server" ID="RadScheduler1"             OnClientAppointmentsPopulating="appointmentsPopulating">

I hope this helps.

Best wishes,
Tsvetomir Tsonev
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
Scheduler
Asked by
Greg Mercer
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or