Hi there,
I'm using a RadScheduler with the month view as ViewType in my WindowsForms application. The main goal is the following:
I need to set the width of each appointment based on integer values. For example: I have a total (100%) of 41. It should now create an appointment with value 41 with the full width. So far so good, this is easy. But I need now two different appointments ("Open" and "Done") with a percentage width of the 41. E.g. 27 "Open", so the width of this appointment should be about 66% of the full width. Then I have 14 for "Done", which should be an appointment with about 33% of the full width. I provided an example image of how it should look at the end.
I hope you know what I mean. Is this possible?
I add the appointments like this:
schedule.FocusedDate = DateTime.Today;schedule.Resources.Add(new Resource() { Id = new EventId(1), Name = "PlannedDay", Color = Color.LightGreen });schedule.GroupType = GroupType.Resource;schedule.ActiveView.ResourcesPerView = 2;schedule.Appointments.Clear();Appointment app1 = new Appointment(DateTime.Today.AddDays(2), new TimeSpan(0, 0, 5), "Total: 41 Boxes");Appointment app2 = new Appointment(DateTime.Today.AddDays(2), new TimeSpan(0, 0, 4), "Open: 27 Boxes");Appointment app3 = new Appointment(DateTime.Today.AddDays(2), new TimeSpan(0, 0, 3), "Done: 14 Boxes");app1.AllowEdit = false;app1.AllowDelete = false;app1.ResourceId = new EventId(1);app2.AllowEdit = false;app2.AllowDelete = false;app2.ResourceId = new EventId(1);app3.AllowEdit = false;app3.AllowDelete = false;app3.ResourceId = new EventId(1);schedule.Appointments.Add(app1);schedule.Appointments.Add(app2);schedule.Appointments.Add(app3);