Reload resources

3 posts, 0 answers
  1. Chad
    Chad avatar
    13 posts
    Member since:
    Aug 2012

    Posted 23 Jul 2015 Link to this post

    I have a number of options on the page for users to choose which resources they want to load on the scheduler. On scheduler load I make a call to load the resources that they have previously save but I'm not able to manipulate or change them once the page loads. Here is my configuration. 

            .Date(new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day))
            .Events(e =>
            .Views(views =>
                views.TimelineView(timeline => timeline
                views.MonthView(timeline => timeline
            .Group(group => group.Resources("Aircraft").Orientation(SchedulerGroupOrientation.Vertical))
            .Resources(resource => resource.Add(m => m.ResourceID)
                .DataSource(source => source.Read("GetResources", "Calendar"))
            .Editable(editable => editable
            .DataSource(dataSource => dataSource            
                .Transport(tr => tr                
                    .Server(s => s
                .Schema(schema => schema
                    .Model(model =>
                        model.Id(m => m.ID);
                        model.Field(m => m.ID).Editable(false);
                        model.Field("start", typeof(DateTime)).From("Start");
                        model.Field("end", typeof(DateTime)).From("End");
                        model.Field("title", typeof(string)).From("Subject");
                        model.Field("description", typeof(string)).From("Description");
                        model.Field("isAllDay", typeof(bool)).From("IsAllDay");
                        model.Field("ownerId", typeof(string)).From("OwnerId");


    I've trying to change resources by saving the selected resources to the database then calling the line below. 



    And I've tried it this way as well. 

    var scheduler = $("#scheduler").data("kendoScheduler");


    Both ways do not refresh the UI. Any help would be appreciated. 



  2. Georgi Krustev
    Georgi Krustev avatar
    3725 posts

    Posted 28 Jul 2015 Link to this post

    Hello Chad,

    In general, the right way to reload/update the resources is to read the data source, like you mentioned in your message:

    Here is a Dojo demo that shows how the resource is updated on every

    Would it be possible to modify the demo in order to demonstrate the erroneous behavior.

    Regards, Georgi Krustev
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Yoichi
    Yoichi avatar
    1 posts
    Member since:
    Oct 2015

    Posted 18 Jul 2016 in reply to Chad Link to this post


    Have you solved it ?

    var scheduler = $("#scheduler").data("kendoScheduler");
        function () {

Back to Top