Reload the Scheduler, or I missed somthing.

2 posts, 0 answers
  1. ivan
    ivan avatar
    27 posts
    Member since:
    Aug 2013

    Posted 17 Nov 2014 Link to this post

    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 configuration
         dataSource: {
         batch: true,
         url: "KPIGetData/DimData.aspx?SearchInput=schedulerevent",
         dataType: "json",

    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 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; // 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.

  2. Georgi Krustev
    Georgi Krustev avatar
    3688 posts

    Posted 19 Nov 2014 Link to this post

    Hello ivan,

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

    Georgi Krustev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top