Hi!
I'm using a scheduler in cshtml:
@(Html.Kendo().Scheduler<ITSV6.Areas.CoreApp.Models.SchedulerModel>() .Name("scheduler") .Date(new DateTime(2013, 6, 13)) .StartTime(new DateTime(2013, 6, 13, 7, 00, 00)) .MajorTick(60) .Views(views => { views.TimelineView(timeline => timeline.EventHeight(50)); views.TimelineWeekView(timeline => timeline.EventHeight(50)); views.TimelineWorkWeekView(timeline => timeline.EventHeight(50)); views.TimelineMonthView(timeline => { timeline.StartTime(new DateTime(2013, 6, 13, 00, 00, 00)); timeline.EndTime(new DateTime(2013, 6, 13, 00, 00, 00)); timeline.MajorTick(1440); timeline.EventHeight(50); }); }) .Timezone("Etc/UTC") .Group(group => group.Resources("SchedulerName", "Employees").Orientation(SchedulerGroupOrientation.Vertical)) .Resources(resource => { resource.Add(m => m.Type) .Title("Type") .Name("Type") .DataTextField("Text") .DataValueField("Value") .DataColorField("Color") .BindTo(new[] { new { Text = "Pay Code", Value = 1}, new { Text = "Day Off", Value = 2}, new { Text = "Shift", Value = 2} }); resource.Add(m => m.SchedulerName) .Title("Scheduler Group") .Name("SchedulerName") .DataTextField("sg_name") .DataValueField("sg_group") .DataColorField("Color") .DataSource(source => { source.Read(read => { read.Action("getScheduleGroups", "Scheduler"); }); }); resource.Add(m => m.Employees) .Title("Employees") .Name("Employees") .Multiple(true) .DataTextField("FullNM") .DataValueField("emp_id") .DataColorField("Color") .DataSource(source => { source.Read(read => { read.Action("GetEmployees", "Scheduler"); }); }); }) .DataSource(d => d .Model(m => { m.Id(f => f.SchedulerId); m.Field(f => f.Title).DefaultValue("No title"); m.RecurrenceId(f => f.RecurrenceId); m.Field(f => f.Title).DefaultValue("No title"); }) //.Read("Read", "Scheduler") .Create("Create", "Scheduler") .Destroy("Destroy", "Scheduler") .Update("Update", "Scheduler") )
The "Employee" and the "RuleName" are associated by a field called "schedulerId".
I need to group "Employees" with a "SchedulerName" only if the Employee is associated to the SchedulerName just like the attached image.
Also, I need to add an empty line as "Empty Template" for add a new "Schedule Rule" like the first line in the attached image.
Its posible to do that with the scheduler?
Thanks a lot!
Best regards!
