tags:

views:

68

answers:

2

Hi all,

I use fullcalendar and set header right: 'month,agendaWeek,agendaDay'

I did not set the default view. When I refresh the page everytime the month view display.

How can I select the agendaDay view and refresh the page then the agendaDay view remains?

Thanks.

A: 

Unless I'm not understanding you correctly surely you want to set the defaultView option?

http://arshaw.com/fullcalendar/docs/views/defaultView/

ILMV
A: 

One technique is to use the getView (http://arshaw.com/fullcalendar/docs/views/getView/) on page unload and save it in the app session (via ajax maybe). And then use this session value to initialize the calendar when the page reloads. This is assuming you have an webapp. If you need a pure client-side solution, try appending the selected view value to the query string of the next page, instead of session

aldrin