Hi ...
I would like to have a documentation for these 2 methods ...
I figured out, that you can set some values with the get_agendaViewSettings() method eg. get_agendaViewSettings().numberOfDays = 30;
I don't know how to use the set_agendaViewSettings().
Thank You
Peter
6 Answers, 1 is accepted
The set_agendaViewSettings method is used to deserialize the settings object form the server, when the Scheduler is initialized. If you need to change some of the settings, you can do it through the get_agendaViewSettings method, as you pointed out.
Regards,
Bozhidar
Telerik
Thank you!
An other question:
I have a scheduler with webservice binding. After clicking on a grid row I want to change the scheduler settings like:
1.) rs.set_selectedView(Telerik.Web.UI.SchedulerViewType.AgendaView);
2.) rs.set_selectedDate(min); // min = some date
The problem is, that the 1. and 2. command triggers a rebind (ClientAppointmentsPopulating) of the scheduler. (That's too much!)
Can I prevent the scheduler from rebinding?
Thank you!!!
Try calling the set_selectedDate method first, and passing "true" as a second parameter to the set_selectedView method:
rs.set_selectedDate(min);
// min = some date
rs.set_selectedView(Telerik.Web.UI.SchedulerViewType.AgendaView,
true
);
Regards,
Bozhidar
Telerik
The following code should work:
scheduler._renderingManager._suppressWebServiceCalls =
true
;
scheduler._selectDate(
new
Date());
scheduler._renderingManager._suppressWebServiceCalls =
false
;
scheduler.set_selectedView(Telerik.Web.UI.SchedulerViewType.AgendaView,
true
);
Regards,
Bozhidar
Telerik
Great! It works for me! (scheduler.set_selectedDate(new Date());)
Thank you!