This is a migrated thread and some comments may be shown as answers.

Reload the Scheduler, or I missed somthing.

1 Answer 80 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
ivan
Top achievements
Rank 1
ivan asked on 17 Nov 2014, 10:47 AM

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







1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 19 Nov 2014, 08:08 AM
Hello ivan,

I would suggest you check this code-library, which shows how to perform server filtering and avoid loading all scheduler events.

Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Scheduler
Asked by
ivan
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or