I am binding a dynamic list to a resourcetype and I have set resource grouping based on this resourcetype through code in the
codebehind.
Day view loads properly. But when the view is changed from dayview to week view or month view , the above error occurs
Error does not occur if the number of list items bound to the resourcetype is less may be below 10 - 15 resources.
And the list contains only 55 resources.
Please help me to solve this issue.
Thanks
Babu
<
telerik:RadScheduler GroupBy="DoctorName" AllowInsert="false" HoursPanelTimeFormat="hh:mm tt" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound"
OnAppointmentCreated="RadScheduler1_AppointmentCreated" runat="server" ID="RadScheduler1"
Skin="Office2007" Height="545px" CustomAttributeNames="StatusId" Width="690px"
ShowFooter="false" SelectedDate="2010-03-18" DayStartTime="07:00:00" DayEndTime="21:00:00"
FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" EnableDescriptionField="true"
ShowNavigationPane="false" OnAppointmentDelete="RadScheduler1_AppointmentDelete"
DataSubjectField="Subject" DataStartField="FromTime" DataEndField="ToTime" ShowAllDayRow="false"
AllowEdit="false" DataKeyField="AppointmentId" DataDescriptionField="Description" OnTimeSlotContextMenuItemClicked="RadScheduler1_TimeSlotContextMenuItemClicked"
AllowDelete="false" OnAppointmentContextMenuItemClicked="RadScheduler1_AppointmentContextMenuItemClicked"
OnNavigationCommand="RadScheduler1_NavigationCommand" OnTimeSlotCreated="RadScheduler1_TimeSlotCreated">
<AppointmentContextMenuSettings EnableDefault="false" />
<TimelineView UserSelectable="false" />
<AppointmentTemplate>
<%
# Eval("Subject")%>
<br />
<asp:Label runat="server" ID="Teacher" />
<br />
<asp:Label runat="server" ID="Students" />
</AppointmentTemplate>
<AppointmentContextMenus>
<telerik:RadSchedulerContextMenu runat="server" DataTextField="Status" DataValueField="StatusId"
ID="SchedulerAppointmentContextMenu" AppendDataBoundItems="true">
<Items>
<telerik:RadMenuItem Text="Copy" Value="Copy" />
<telerik:RadMenuItem IsSeparator="True" />
<telerik:RadMenuItem Text="Edit" Value="Edit" />
<telerik:RadMenuItem IsSeparator="True" />
</Items>
</telerik:RadSchedulerContextMenu>
</AppointmentContextMenus>
<TimeSlotContextMenus>
<telerik:RadSchedulerContextMenu runat="server" ID="SchedulerTimeSlotContextMenu">
<Items>
<telerik:RadMenuItem Text="New Appointment" Value="New" />
<telerik:RadMenuItem IsSeparator="true" />
<telerik:RadMenuItem Text="Paste" Value="Paste" />
</Items>
</telerik:RadSchedulerContextMenu>
</TimeSlotContextMenus>
<TimeSlotContextMenuSettings EnableDefault="False" />
</telerik:RadScheduler>
| <telerik:RadSchedulerContextMenu runat="server" ID="SchedulerTimeSlotContextMenu" > |
| <Items> |
| <telerik:RadMenuItem Text="New Appointment" ImageUrl="Images/new.gif" Value="CommandAddAppointment" /> |
| <telerik:RadMenuItem Text="New Recurring Appointment" ImageUrl="Images/recurring.gif" Value="CommandAddRecurringAppointment" /> |
| <telerik:RadMenuItem IsSeparator="true" /> |
| <%-- Custom command --%> |
| <telerik:RadMenuItem Text="Group by Calendar" Value="EnableGrouping" /> |
| <telerik:RadMenuItem IsSeparator="true" /> |
| <telerik:RadMenuItem Text="Change Scheduler Location" > |
| </telerik:RadMenuItem> |
| </Items> |
| </telerik:RadSchedulerContextMenu> |
| Protected Sub LoadLocationSchedulerContextMenuItems() |
| Dim objScheduler As New Scheduler |
| Dim lLocations As New System.Collections.Generic.List(Of Locations)() |
| Dim ChangeSchedulerLocationMenu As RadMenuItem = RadScheduler1.TimeSlotContextMenus(0).Items(4) |
| lLocations = objScheduler.GetLocations(m_CTSession.CTContext.OPP.GroupID) |
| For Each obj As Locations In lLocations |
| Dim LocationMenuItem As New RadMenuItem |
| LocationMenuItem.Text = obj.LocationShortName |
| LocationMenuItem.Value = obj.LocationId |
| ChangeSchedulerLocationMenu.Items.Add(LocationMenuItem) |
| Next |
| ChangeSchedulerLocationMenu.DataBind() |
| objScheduler = Nothing |
| lLocations = Nothing |
| End Sub |
I am using an SqlDataSource pointing to my table that has a primary key on the ID and userid fields.
The delete button displays in the listbox at design time but when I run the app there is no delete button. I have tried changing the width of the listbox but that did not help.
Is there something else I am missing that needs to be done?
