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

Adding CustomAttributeNames throws error and breaks updating

1 Answer 170 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Richard Williams
Top achievements
Rank 1
Richard Williams asked on 01 Dec 2008, 07:11 PM
As soon as I add the CustomAttributeNames (see code below), I can no longer double click the appointment to edit it.
Code:
    <telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="EndTime" DataKeyField="ID" 
        DataSourceID="sdsLessons" DataStartField="StartTime" DataSubjectField="Comments" 
        HoursPanelTimeFormat="htt" Skin="Office2007" ValidationGroup="RadScheduler1" 
        SelectedDate="2008-11-24" SelectedView="WeekView" Style="top: 0px; left: 0px"   
        CustomAttributeNames="Subject,Text,StudentID,TextID">  
    </telerik:RadScheduler> 
 

Error:
"Microsoft JScript runtime error:
Sys.WebForms.PageRequestManagerServerErrorException: Error serializing value 'Telerik.Web.UI.Appointment' of type 'Telerik.Web.UI.Appointment.'"

Any help would be great.

1 Answer, 1 is accepted

Sort by
0
Richard Williams
Top achievements
Rank 1
answered on 01 Dec 2008, 08:28 PM
I did some trouble shooting after posting and I found the problem. I had an Attribute Name of "Subject" and "Subject" is a key property field in appointment. I don't understand the exact issue, but it appears that reusing that key property name is a problem. Renaming the Attribute seemed to resolve the problem.

Thanks!!
Tags
Scheduler
Asked by
Richard Williams
Top achievements
Rank 1
Answers by
Richard Williams
Top achievements
Rank 1
Share this question
or