我需要防止在调度程序的
navigate
事件期间自动触发的服务器调用,因为我需要调用我的函数LoadData
做很多事情然后以编程方式执行服务器调用datasource.read()
调度程序配置了
weekTimeline view
我试过这样
navigate: function(e) {
e.preventDefault(); //<<--this block all
LoadData() //<-- this perform a server call but before try to read the current scheduer view dates (that are not "updated" (are the old ones) because "e.preventDefault()" has blocked the movement from a week to the next
}
这会阻止服务器调用,但也会阻止日期导航(不会在下周移动