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

Client-side events failing at eventargs.get_appointment()

3 Answers 150 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Steve Kinyon
Top achievements
Rank 1
Steve Kinyon asked on 03 Jan 2008, 05:04 AM

I keep getting an "Object doesn't support this property or method." using the OnClientAppointClick event.  The script doesn't get past the first line.

Property: OnClientAppointmentClick
="openCalendarItem"

<script type="text/javascript">
function openCalendarItem(sender, eventArgs){
var apt = eventArgs.get_Appointment();
window.radopen(
"calviewitem.aspx?id=" + apt.ID, "winViewItem");
}
</script>


3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 03 Jan 2008, 07:54 AM
Hello Steve,

The documentation is not uptodate. The get_appointment() method is now all lower case:

var apt = eventArgs.get_appointment();



Greetings,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Steve Kinyon
Top achievements
Rank 1
answered on 03 Jan 2008, 05:44 PM
Thanks, that worked.

One thing that I can get by with, but it is a problem.  When the scheduler is set to Expand on the WeekView mode, the times on the side don't line up with the appointments & time lines.  I'm using the WebBlue skin, if that makes a difference.

Also, when the SelectedDate is set to a full date time (Now vs. Now.Date), it changes the DayStartTime to be the SelectedDate, and throws the whole calendar off.
0
Peter
Telerik team
answered on 08 Jan 2008, 10:04 AM
Hi Steve Kinyon,

Let me start with the second question. Indeed, the SelectedDate has to be set to Now.Date format, otherwise the day start time will be offset. This is expected.

The first problem is a consequence of the second issue explained above. If you set SelectedDate to Now.Date format, you will not experience this problem.

Thanks you for reporting your observations.



All the best,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
Steve Kinyon
Top achievements
Rank 1
Answers by
Peter
Telerik team
Steve Kinyon
Top achievements
Rank 1
Share this question
or