dhx scheduler month ,week (view) button click function

please suggest me the functions for month ,week (view) button click function,
if i manually give a click function to the button class , the function is calling before setting the appropriate view .

Hi,
not sure i completely understand the question
If you want to change the view using your custom button, you can use scheduler.setCurrentView function
docs.dhtmlx.com/scheduler/api__s … tview.html

If you want to override behavior of the default buttons, you can either hide them and add custom ones instead or redefine a private handler of a click
github.com/DHTMLX/scheduler/blo … r.js#L2151