Hi,
When i am binding appointment from database i faceing the following error Value cannot be null. Parameter name: expression. Please Look the my code below
When i am binding appointment from database i faceing the following error Value cannot be null. Parameter name: expression. Please Look the my code below
<telerik:RadScheduler runat="server" ID="RadScheduler1" Height="585px" SelectedDate="2010-03-04"FirstDayOfWeek="Saturday" LastDayOfWeek="Thursday" DataKeyField="ActivityId" DataSubjectField="Subject" DataDescriptionField="Description" DataStartField="Start" ShowFooter="true" ShowHeader="true" DataEndField="End" CustomAttributeNames="Location" StartInsertingInAdvancedForm="true" StartEditingInAdvancedForm="true" EnableExactTimeRendering="true"Skin="Windows7" EnableDescriptionField="true" DataReminderField="Reminder" AppointmentStyleMode="Default"OnNavigationComplete="RadScheduler1_NavigationComplete" OnAppointmentCreated="RadScheduler1_AppointmentCreated"OnAppointmentDataBound="RadScheduler1_AppointmentDataBound"> <AdvancedForm EnableCustomAttributeEditing="true" EnableResourceEditing="true" Modal="true" /> <TimelineView UserSelectable="false" /> <Reminders Enabled="true" /> <ResourceTypes> <telerik:ResourceType Name="Category" DataSourceID="odsScheduleCategory" ForeignKeyField="CategoryID" TextField="ColorCategory" KeyField="CategoryID" /> </ResourceTypes> <ResourceStyles> <%--AppointmentStyleMode must be explicitly set to Default (see above) otherwise setting BackColor/BorderColor will switch the appointments to Simple rendering (no rounded corners and gradients)--%> <%--<telerik:ResourceStyleMapping Type="Category" Text="ColorCategory" ApplyCssClass="rsCategoryBlue" BorderColor="#B0CC9B" /> <telerik:ResourceStyleMapping Type="Category" Text="Green Category" ApplyCssClass="rsCategoryGreen" /> <telerik:ResourceStyleMapping Type="Category" Text="ColorCategory" BackColor="#edd5b7" BorderColor="#cdb597" />--%> </ResourceStyles> <AppointmentTemplate> <div> <%# Eval("Subject") %> </div> <%# Eval("Description") %> <%#Eval("Location")%> <%#Eval("Start")%> <%#Eval("End")%> <%#Eval("ShowAs")%> </AppointmentTemplate> <%--<AdvancedInsertTemplate> <telerik:RadTextBox ID="txtLocation" runat="server" Label="Location :" Skin="Windows7"> </telerik:RadTextBox> </AdvancedInsertTemplate>--%> <TimeSlotContextMenuSettings EnableDefault="true" /> <AppointmentContextMenuSettings EnableDefault="true" /> </telerik:RadScheduler>RadScheduler1.DataSource = dt RadScheduler1.DataBind()