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

Documentation for Method get_agendaViewSettings and set_agendaViewSettings

6 Answers 9 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Bernie
Top achievements
Rank 1
Bernie asked on 11 Sep 2015, 11:47 AM

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

Sort by
0
Bozhidar
Telerik team
answered on 16 Sep 2015, 08:21 AM
Hello,

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
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 Feedback Portal and vote to affect the priority of the items
0
Bernie
Top achievements
Rank 1
answered on 16 Sep 2015, 08:36 AM

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!!!

0
Bozhidar
Telerik team
answered on 17 Sep 2015, 08:11 AM
Hi,

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
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 Feedback Portal and vote to affect the priority of the items
0
Bernie
Top achievements
Rank 1
answered on 17 Sep 2015, 08:43 AM
Thank you, I tried but this doesn't work!
0
Accepted
Bozhidar
Telerik team
answered on 17 Sep 2015, 08:51 AM
Hello,

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
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 Feedback Portal and vote to affect the priority of the items
0
Bernie
Top achievements
Rank 1
answered on 17 Sep 2015, 08:59 AM

Great! It works for me! (scheduler.set_selectedDate(new Date());)

 Thank you!

Tags
Scheduler
Asked by
Bernie
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Bernie
Top achievements
Rank 1
Share this question
or