Hi, I see the online demo, it likes that the scheduler get all data from the server, and filter them on the client side.
That's not a good idea when the time is long enough,and the amount of data is very big.
I could think about is to send timestart and timeend paras to the datasource's read().
I know when the scheduler is initialized, I can use this:
dataSource: [
// The kendo.data.SchedulerDataSource configuration
dataSource: {
batch: true,
transport:
{
read:
{
url: "KPIGetData/DimData.aspx?SearchInput=schedulerevent",
dataType: "json",
data:"&SearchValue="+CurrentUserID+"&StartTime="+SearchTimeStart+"&EndTime="+SearchTimeEnd
}
},
So I send the query para from the read in the transport to the server, so the server will use this info to give back the right records. That's ok.
Now I wan't to know, how to reload the scheduler when it change to anoher month, week, or year.
1) when I change the scheduler to another month, week, or year, the datasource.read() will reload data from server automatically? I don't think so.
2) So what need I do to make it reload from server again? My point is to use this:
change: function(e) {
e.preventDefault(); //prevent popup editing
var dataSource = this.dataSource;
dataSource.read() // or somthing
}
I can't found anything in the document about this. So please tell me if this is the Right Way to do this.
yours,
Ivan