Null get_appointment object

3 posts, 0 answers
  1. david
    david avatar
    210 posts
    Member since:
    May 2007

    Posted 10 Aug 2015 Link to this post

    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. david
    david avatar
    210 posts
    Member since:
    May 2007

    Posted 10 Aug 2015 in reply to david Link to this post

    duh brackets might help

    apt.get_id()

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ivan Danchev
    Admin
    Ivan Danchev avatar
    835 posts

    Posted 12 Aug 2015 Link to this post

    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
Back to Top