Change view mode

I use a new button, every time click on this button, it will change the view mode of scheduler.

the function will be :
function changeViewmode(viewmode)


Is that right? Please consider it.

i see this function have problems, because every time, it will init the scheduler.

You can use

scheduler.setCurrentView(scheduler._date, viewmode);

To change modes dynamically. Switching setLoadMode must work as is, but beware that it may break correct data caching.

i think my question is ok in this thread:

is there any function implemented, to get the actual view? if its day, month, year?

thx. joerg

You can use scheduler._mode , it always contains name of an active mode