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

Resources not displaying

3 Answers 159 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Chad
Top achievements
Rank 2
Chad asked on 22 Jun 2015, 08:28 PM

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")
        )
    )

3 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 23 Jun 2015, 08:34 AM
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
0
Chad
Top achievements
Rank 2
answered on 23 Jun 2015, 02:47 PM

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. 

0
Vladimir Iliev
Telerik team
answered on 24 Jun 2015, 11:01 AM
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
Tags
Scheduler
Asked by
Chad
Top achievements
Rank 2
Answers by
Vladimir Iliev
Telerik team
Chad
Top achievements
Rank 2
Share this question
or