year view

What is the right place to add a year view (extension)? Is it better to add it on the page (client side) using java script or is it more correct to add it using server side (asp.net c#)?

Either way, how external year view is added to scheduler?

Hi,
there are no big difference, it depends on how do you prefer to organize the code

On server side it’s enough to add a view instance into Views collection:
Scheduler.Views.Add(new YearView());

s3.amazonaws.com/uploads.hipcha … arview.zip

If you add js on a client-side, you’ll have to add (inject using js) a button for the view into markup manually

What is the right code for the js client side (button handler)?

Hi,
you can try this code to add the button

[code]var div = document.querySelector(".dhx_cal_container .dhx_cal_navline");
if(div){
div.insertAdjacentHTML(“beforeend”,

Year
’);

}[/code]
If you do it before initialization of the scheduler, the handler will be set automatically