| protected void RadScheduler1_OnDataBound(object sender, EventArgs e) |
| { |
| //Clear all resources of type 'user': |
| foreach (Resource res in RadScheduler1.Resources.GetResourcesByType("User Name")) |
| { |
| RadScheduler1.Resources.Remove(res); |
| } |
| //Add resources of type 'user' that are in use for the visible range of RadScheduler: |
| foreach (Telerik.Web.UI.Appointment a in RadScheduler1.Appointments.GetAppointmentsInRange(RadScheduler1.VisibleRangeStart, RadScheduler1.VisibleRangeEnd)) |
| { |
| RadScheduler1.Resources.Add(a.Resources.GetResourceByType("User Name")); |
| } |
| } |
After doing more testing I've noticed a problem with the code example I was provided. It appears that for evey entry by a particular user for the given date range it adds that user to the group by view. So in the screen shot I provided Gabe has 9 entries for the week and he is showing up 9 times in the group by view. Here is the code I'm using