Using ASP.NET (not MVC)
Can someone tell me how to change the date of the scheduler and refresh the data to the new date from a control elsewhere on the page.
Either needs to be in the code-behind or possibly in javascript.
Thanks
Using ASP.NET (not MVC)
Can someone tell me how to change the date of the scheduler and refresh the data to the new date from a control elsewhere on the page.
Either needs to be in the code-behind or possibly in javascript.
Thanks
Hello,
you may change the date and selected view using the next method
javascript:
scheduler.setCurrentView(date, view);
e.gscheduler.setCurrentView(new Date(2012,08,12)); //will change date
scheduler.setCurrentView(null, "week");//change current view, where 'week' is a name of the view from codebehind
scheduler.setCurrentView(new Date(2012,08,12), "week");//change date and view
to reload data you can use scheduler.clearAll();
scheduler.load(url, 'json');
scheduler.load may also take a callback function as a second parameter
Thanks! but neither the Javascript or code-behind versions worked!
Javascript debugger complained that the method .setCurrentView didn’t exist saying -
Object doesn’t support property or method ‘setCurrentView’
and in the code-behind, visual studio 2010 intellisense, didn’t have a method to Scheduler called setCurrentView.
Andrew
Hi,
scheduler.setCurrentView
should be defined in javascript. What version of calendar are you using? Try to download the latest version of the component(if you have full version, post ticket to our support system and we will send it to you)
The DHTMLX.dll product version is 1.0.0.1 and the assembly version is 1.0.4493.34818