How to change Start Hour and Last Hour After page loaded.

Hi All,

Hi I want to provide a mean so that use can change the start and last hour through UI after schedular is loaded and the reload the calender with new start and last hour span .

How can I achieve the the same.

And i want to fetch and show only those activies pertaining to a perticlar week(not all weeks).which event i have to use to fetch and show only the pertained week actvities from the DB

How can I achieve the same.

i am using the following to add events from JSON Array of Events

for (x in ajaxResp) {
scheduler.addEvent(ajaxResp[x]);
}

where ajaxResp is the JSON array of Event Objects.

Thanks and Regards
Tirupathi.Rao

and the reload the calender with new start and last hour
Check
viewtopic.php?f=6&t=12772
And use
scheduler.setCurrentView(scheduler._date, scheduler._mode);
to force a visual update

And i want to fetch and show only those activies pertaining to a perticlar week
docs.dhtmlx.com/doku.php?id=dhtm … al_loading

Dear Stanislav,

Actually My requirement is like below

1.I wanna provide the end user with a fecility to Change the Start time And End time With by providing in puts like

start hour(input In Text Box)
End hour(input In Text Box)
Submit(Buttton)
then i have to change the Time Span on basis of these inputs and reload the page =>

how can i achive the same??

2.At current I provided the user with the Week view and i will display only the events in the current week and when the user clicks next to view the next week events i will again fetch the events of that week and display

how can do so reload the page again with the new events.

how can i achive the same??
Previous answer covers exactly the same situation.

  • update config options
  • call grid.setCurrentView

how can do so reload the page again with the new events.
You can attach custom code to the onBeforeViewChange and return false if date is outside of allowed range ( or you can try “limit” extension from scheduler 2.2 package )