This is a migrated thread and some comments may be shown as answers.

I want to Show Multiple Doctor Appointment But Show Error rows.0.cells is null or not an object

2 Answers 66 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Chandan Kumar
Top achievements
Rank 1
Chandan Kumar asked on 13 May 2010, 06:53 AM

Dear Sir,

i m using Rad shceduler control and for Single Provider its working Fine. But When
I want to Show Multiple Doctor Appointment in Scheduler Control i just Set GroupId="DoctorName"  But it showing  Error rows.0.cells is null or not an object.
With out GroupBy="DoctorName" its working Fine. But Without GroupName How Can i Achive Multiple Doctor Appointment Case.
Please Help Me.
Thanks
Chandan Kumar.

aspx page coding.

<

 

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>

 

2 Answers, 1 is accepted

Sort by
0
Chandan Kumar
Top achievements
Rank 1
answered on 13 May 2010, 08:33 AM
I Have Solved my Problem Now Group by is working properly in my Code <ResourceTypes> was Missing. Now is Working Fine.
But problem is how can i get Resource Id at the time of appointment in case of multiple provider.
also i want to bind resource through cs Page (Code Behind).
Plese Help Me..

Thanks
Chandan Kumar.
0
Peter
Telerik team
answered on 14 May 2010, 12:09 PM
Hi Chandan Kumar,

Please, review this topic and let us know if this is what you need:
Implementing A Provider That Supports Multi-valued Resources


Greetings,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Scheduler
Asked by
Chandan Kumar
Top achievements
Rank 1
Answers by
Chandan Kumar
Top achievements
Rank 1
Peter
Telerik team
Share this question
or