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

Edit Appointment Event Args

5 Answers 58 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Rex Chappell
Top achievements
Rank 1
Rex Chappell asked on 22 Sep 2008, 03:46 PM
Currently I'm catching the OnClientEditing event to produce my own custom window, and I have been unable to find a list of fields that are included in the appointment attached to the eventargs. (IE, the apt declared in the help file's example)

Basically, I'm trying to populate the custom window with the information from the appointment being edited. If anyone can point me at the listing, it would be greatly appreciated.

5 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 22 Sep 2008, 05:06 PM
Hello Rex,

The appointment is passed as a property of the eventArgs argument. You can access it like this:

        function onAppointmentEditing(sender, eventArgs) 
        { 
            logEvent("Appointment editing: " + eventArgs.get_appointment().get_subject()); 
        } 

This example demonstrates how to handle the RadScheduler client-side events:
http://demos.telerik.com/ASPNET/Prometheus/Scheduler/Examples/ClientSideEvents/DefaultCS.aspx
Let us know if you have any further questions.

Greetings,
Tsvetomir Tsonev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Rex Chappell
Top achievements
Rank 1
answered on 23 Sep 2008, 01:53 PM
Thank you for the prompt response, however I'm looking for the fields of the appointment itself. I know about the get_appointment() function, though I don't know how to make use of it.

Thanks again,
-Rex Chappell
0
T. Tsonev
Telerik team
answered on 24 Sep 2008, 02:32 PM
Hi Rex,

I am not sure I understand correctly. If by "fields" you mean subject, start time, end time and the like - those properties are accessible by calling get_subject(), get_start(), get_end(), etc. Am I missing something?

Greetings,
Tsvetomir Tsonev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Rex Chappell
Top achievements
Rank 1
answered on 24 Sep 2008, 03:12 PM
Thats exactly what I was looking for. Do you know of a full list of those?

Thanks again,
-Rex Chappell
0
Peter
Telerik team
answered on 24 Sep 2008, 03:35 PM
Hello Rex,

You can refer to the client-side SchedulerAppointment help topic, as well to the other topics in the Client-Side Programing chapter.


Sincerely yours,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Rex Chappell
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Rex Chappell
Top achievements
Rank 1
Peter
Telerik team
Share this question
or