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

Null get_appointment object

2 Answers 7 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
david
Top achievements
Rank 1
david asked on 10 Aug 2015, 03:12 PM

Hi,

I'm using this example - http://docs.telerik.com/devtools/aspnet-ajax/controls/scheduler/how-to/replace-the-edit-form

when the AppointmentEditing event fires the apt object is blank?

function AppointmentEditing(sender, eventArgs) {
        var apt = eventArgs.get_appointment();
        var oWindow = window.radopen("CalenderAdvancedForm.aspx?Mode=Edit&AppointmentID=" + apt.ID, "AdvancedForm");
        oWindow.Maximize();
        oWindow.SetTitle("Edit Appointment");
        oWindow.Center();
        eventArgs.set_cancel(true);
    }

<telerik:RadScheduler ID="RadScheduler1" runat="server" DataDescriptionField="Description" DataEndField="End" DataKeyField="ID" DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentID" DataReminderField="Reminder" DataSourceID="SqlDataSource1" DataStartField="Start" DataSubjectField="Subject" Height="700px" SelectedView="WeekView" Skin="Metro" TimeZoneID="Central Standard Time" Width="990px" WorkDayEndTime="18:00:00" CustomAttributeNames="Type" EnableCustomAttributeEditing="True" TimeZoneOffset="-06:00:00" StartInsertingInAdvancedForm="false"
     OnClientAppointmentEditing="AppointmentEditing" 
     OnClientAppointmentInserting="AppointmentInserting" >

2 Answers, 1 is accepted

Sort by
0
david
Top achievements
Rank 1
answered on 10 Aug 2015, 11:03 PM

duh brackets might help

apt.get_id()

0
Ivan Danchev
Telerik team
answered on 12 Aug 2015, 12:55 PM
Hello,

Thank you for pointing out this issue in the documentation article. It will be fixed and the correct get_id() client-side method will be added to the code snippet.

Regards,
Ivan Danchev
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Scheduler
Asked by
david
Top achievements
Rank 1
Answers by
david
Top achievements
Rank 1
Ivan Danchev
Telerik team
Share this question
or