Resources not displaying

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

    Posted 22 Jun 2015 Link to this post

    hello, I have using the scheduler and when I inspect the control in the javascript console I can see that there is data in the resources.datasource object but for some reason the resources are not displaying in the Timeline. I'm just trying to load resources right now without events. Do I have to have events for the resources to load properly. In the old webforms scheduler you didn't need that. Also, once loaded how do I change them dynamically so that users can manipulate the timeline and look at specific combination of resources. 

     

     @(Html.Kendo().Scheduler<Avianis.Models.Scheduler.AppointmentViewModel>()
            .Name("scheduler")
            .Date(new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day))
            .Views(views =>
            {
                views.TimelineView(timeline => timeline.EventHeight(50));
                views.TimelineWeekView(timeline => timeline.EventHeight(50));
                views.TimelineMonthView(timeline => timeline.EventHeight(50));
            })
            .Resources(resource => resource.Add(m => m.ResourceID)
                         .Title("Aircraft")
                         .Name("Aircraft")
                         .DataTextField("Name")
                         .DataValueField("ID")
                         .DataSource(source => source
                             .Read("GetResources", "Calendar"))
            )
            .DataSource(d => d
                    .Model(m =>
                    {
                        m.Id(f => f.MeetingID);
                        m.Field(f => f.Title).DefaultValue("No title");
                        m.RecurrenceId(f => f.RecurrenceID);
                        m.Field(f => f.Title).DefaultValue("No title");
                    })
                    .Read("Aircraft_Read", "Calendar")
            )
        )

  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 23 Jun 2015 Link to this post

    Hi Robert,

    Please check the answers of your questions below:

    1) In the javascript console I can see that there is data in the resources.datasource object but for some reason the resources are not displaying in the Timeline - I tried to reproduce the problem locally but to no avail – everything is working as expected on our side. Could you please provide runable project where the issue is reproduced?
     
    2) How do I change them dynamically so that users can manipulate the timeline and look at specific combination of resources - Please check the example below of how to achieve the desired behavior:

    Regards,
    Vladimir Iliev
    Telerik
    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. UI for ASP.NET MVC is VS 2017 Ready
  4. Chad
    Chad avatar
    13 posts
    Member since:
    Aug 2012

    Posted 23 Jun 2015 Link to this post

    Vladimir, 

    I looked at the example link in the Timeline view and it has the same result as I do. No resources listed. All it has is a all events row. I tried checking and unchecking the boxes and nothing occurred. Please look at that example in the Timeline view and let me know if you see the same result. 

  5. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 24 Jun 2015 Link to this post

    Hello Robert,

    Please check the screencast below which shows what exactly I'm seeing on our side:

    Regards,
    Vladimir Iliev
    Telerik
    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
Back to Top
UI for ASP.NET MVC is VS 2017 Ready