Documentation for Method get_agendaViewSettings and set_agendaViewSettings

7 posts, 1 answers
  1. Bernie
    Bernie avatar
    27 posts
    Member since:
    Apr 2008

    Posted 11 Sep 2015 Link to this post

    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

  2. Bozhidar
    Admin
    Bozhidar avatar
    1101 posts

    Posted 16 Sep 2015 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Bernie
    Bernie avatar
    27 posts
    Member since:
    Apr 2008

    Posted 16 Sep 2015 in reply to Bozhidar Link to this post

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

  5. Bozhidar
    Admin
    Bozhidar avatar
    1101 posts

    Posted 17 Sep 2015 Link to this post

    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
  6. Bernie
    Bernie avatar
    27 posts
    Member since:
    Apr 2008

    Posted 17 Sep 2015 in reply to Bozhidar Link to this post

    Thank you, I tried but this doesn't work!
  7. Answer
    Bozhidar
    Admin
    Bozhidar avatar
    1101 posts

    Posted 17 Sep 2015 Link to this post

    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
  8. Bernie
    Bernie avatar
    27 posts
    Member since:
    Apr 2008

    Posted 17 Sep 2015 in reply to Bozhidar Link to this post

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

     Thank you!

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017