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

get_appointment() doesn't return ID

2 Answers 159 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Steve Wages
Top achievements
Rank 1
Steve Wages asked on 13 Apr 2008, 04:55 AM
for editing appointments,
the function:
            function AppointmentEditing(sender, eventArgs) 
            { 
                
                var apt = eventArgs.get_appointment(); 
                alert(apt.ID); 
                window.radopen("AdvancedFormCS.aspx?Mode=Edit&AppointmentId=" + apt.ID, "AdvancedForm"); 
 
                eventArgs.set_cancel(true); 
                currentApt = null
            }
 
the apt.ID returns undefined.
I started debugging and tracing the javascript and it seems the value is instead,
apt._id
is this correct?

it gives me the right id, just don't see this documented anywhere and apt.ID is undefined.
my page is inside a master page.

want to make sure we are using the right values.
I'm using: Telerik.Web.UI Trial Version 2008.1.401.20


2 Answers, 1 is accepted

Sort by
0
Dimitar Milushev
Telerik team
answered on 14 Apr 2008, 12:13 PM
Hi Steve Wages,

The RadScheduler is part of the ASP.NET AJAX RadControls suite and uses code guidelines similar to the client-side API of ASP.NET AJAX.

For public properties you should use get_* and set_* methods i.e. in your case you should use the .get_id() method. Please note, that there is .set_id() method as this is a read-only property.

Best wishes,
Dimitar Milushev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
David
Top achievements
Rank 1
answered on 02 Jul 2013, 06:02 PM
Thanks, Steve.  apt._id worked!
Tags
Scheduler
Asked by
Steve Wages
Top achievements
Rank 1
Answers by
Dimitar Milushev
Telerik team
David
Top achievements
Rank 1
Share this question
or