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

[Solved] OnClientAppointmentEditing : problem with eventArgs.get_appointment()

2 Answers 159 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
julien royer
Top achievements
Rank 1
julien royer asked on 10 Feb 2010, 03:22 PM
Hi,

I search to redirect on a new form when i double click an appointment.

In javascript i have :
 function OnClientAppointmentEditing(sender, eventArgs) {  
            var apt = eventArgs.get_appointment(); 
            window.location = "Rappel.aspx?idEvent=" + apt.ID;  
            eventArgs.set_cancel(true);   
        }   

and in the radscheduler body :

<telerik:RadScheduler runat="server" ID="RadScheduler1" 
            Width="750px"  
            Height="650px" 
            Skin="Web20"  
            Culture="fr-FR" 
            DataKeyField="id" 
            DataStartField="eventstart"  
            DataEndField="eventend"  
            DataSubjectField="name" 
            DataDescriptionField="motifs" 
            DataSourceID="SqlDataSource1" 
            CustomAttributeNames="idTypeEvent" 
            FirstDayOfWeek="Monday" 
            LastDayOfWeek="Sunday" 
            DayStartTime="08:00:00"  
            DayEndTime="19:00:00"  
            HoursPanelTimeFormat="HH:mm"  
            WeekView-ColumnHeaderDateFormat="ddd d"  
            MultiDayView-ColumnHeaderDateFormat="ddd d"  
            MonthView-HeaderDateFormat="MMM yyyy"  
            MultiDayView-DayEndTime="19:00:00"  
            MultiDayView-WorkDayEndTime="19:00:00"  
            WeekView-DayEndTime="19:00:00"  
            WeekView-WorkDayEndTime="19:00:00"  
            WorkDayEndTime="19:00:00"  
            ShowViewTabs="true" 
            TimelineView-UserSelectable="False" 
            EnableDescriptionField="True" 
            EnableResourceEditing="True" 
            EnableCustomAttributeEditing="True" 
            AdvancedForm-EnableResourceEditing="True" 
            AdvancedForm-EnableCustomAttributeEditing="True" 
            OnAppointmentInsert="RadScheduler1_AppointmentInsert" 
            OnAppointmentDelete="RadScheduler1_AppointmentDelete" 
            StartEditingInAdvancedForm="False" 
            MinimumInlineFormHeight="80"


            OnClientAppointmentEditing="OnClientAppointmentEditing"


            > 

Unfortunatly it seem i can't get correct informations with the get_appointment method.
In the redirect page, i have in the url idEvent=undefined and not the id's appointment.

Any idea?

Thanks a lot!

2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 12 Feb 2010, 04:39 PM
Hello julien,

Please, try using apt.get_id() instead of apt.ID.

Kind regards,
Peter
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
julien royer
Top achievements
Rank 1
answered on 15 Feb 2010, 01:09 PM
Thanks Peter.

I found a solution with apt._id!
Tags
Scheduler
Asked by
julien royer
Top achievements
Rank 1
Answers by
Peter
Telerik team
julien royer
Top achievements
Rank 1
Share this question
or