I am facing another issue. As given in the rental car demo, I have group scheduler by instructor resource. I added resource Instructors at the design time but provided datasource at runtime in the pageload event as given below:
rsAppointments.ResourceTypes.DataSource = GetInstructorList();
rsAppointments.ResourceTypes.ForeignKeyField = "InstructorId";
rsAppointments.ResourceTypes.KeyField = "InstructorId";
rsAppointments.ResourceTypes.TextField = "NameString";
For displaying the images of the instructor in the resource header template, I have used the following code:
protected void rsAppointments_DataBound(object sender, EventArgs e)
foreach (Resource resource in rsAppointments.Resources.GetResourcesByType("Instructors"))
resource.Attributes["Image"] = DataBinder.Eval(resource.DataItem, "Photo") as String;
When the page is loaded first, it displays the images of the instructors in the resource header but when i navigate to past/future dates the images does not get displayed. Please see the attached screenshots. I am unable to track the reason of this behaviour. Please provide the solution.
Also is there any way to limit the resources for the view. As the no of the instructors will increase, the scheuler view will not be that much clear. So I want to display the schedule for say 5 instructors at a time. I think this functionality is available in the windows scheduler as given below in the following blog:
radScheduler1.GroupType = GroupType.Resource;
radScheduler1.ActiveView.ResourcesPerView = 3;
I also want something like this. How to achive this?