Hello, our company is recently tested products telerik rad scheduler and specifically the need to know if this control can make calls to pop up an external page to insert, edit and delete data, because each process has too many validations directly the database that must be handled by codebehind and for us is very important to use this work scheme.
sorry for my bad English
thanks
sorry for my bad English
thanks
6 Answers, 1 is accepted
0
Princy
Top achievements
Rank 2
answered on 01 Mar 2013, 05:12 AM
Hello Pablo,
One suggestion is you can open a RadWindow from client side on clicking the RadScheduler time slot and set the NavigateUrl property to your external page. Please have a look at the following code.
ASPX:
JavaScript:
Please have a look into the following demo which illustrate a similar scenario.
Thanks,
Princy.
One suggestion is you can open a RadWindow from client side on clicking the RadScheduler time slot and set the NavigateUrl property to your external page. Please have a look at the following code.
ASPX:
<
telerik:RadScheduler
ID
=
"RadScheduler1"
runat
=
"server"
OnClientTimeSlotClick
=
"OnClientTimeSlotClick"
DataEndField
=
"End"
DataKeyField
=
"ID"
DataRecurrenceField
=
"RecurrenceRule"
DataRecurrenceParentKeyField
=
"RecurrenceParentID"
OnClientAppointmentClick
=
"openAdvancedForm"
DataStartField
=
"Start"
DataSubjectField
=
"Subject"
OnAppointmentDelete
=
"RadScheduler1_AppointmentDelete"
OnAppointmentInsert
=
"RadScheduler1_AppointmentInsert"
OnAppointmentUpdate
=
"RadScheduler1_AppointmentUpdate"
OnFormCreated
=
"RadScheduler1_FormCreated"
SelectedView
=
"WeekView"
StartEditingInAdvancedForm
=
"true"
StartInsertingInAdvancedForm
=
"true"
>
<
AdvancedForm
Modal
=
"True"
/>
</
telerik:RadScheduler
>
<
telerik:RadWindow
ID
=
"RadWindow1"
runat
=
"server"
Modal
=
"true"
Title
=
"Telerik"
Behaviors
=
"Close"
NavigateUrl
=
"http://www.telerik.com"
>
</
telerik:RadWindow
>
JavaScript:
<script type=
"text/javascript"
>
function
OnClientTimeSlotClick(sender, args) {
var
wind = $find(
"<%= RadWindow1.ClientID %>"
);
wind.show();
}
</script>
Please have a look into the following demo which illustrate a similar scenario.
Thanks,
Princy.
0
Pablo
Top achievements
Rank 1
answered on 01 Mar 2013, 06:08 PM
Thank you very much Princy your help was very useful for me, but I have one last question
How could I get the id of the appointment to edit and delete the same way using pop up.
Thank you very much
How could I get the id of the appointment to edit and delete the same way using pop up.
Thank you very much
0
Princy
Top achievements
Rank 2
answered on 02 Mar 2013, 05:17 AM
Hi,
You can pass the id as shown below.
JS:
Thanks,
Princy
You can pass the id as shown below.
JS:
function
OnClientTimeSlotClick(sender, args) {
var
id = sender.get_appointments().findByID(5).get_id();
window.radopen(
"Page.aspx?ID="
+ id,
null
);
}
Thanks,
Princy
0
Alan
Top achievements
Rank 1
answered on 08 Oct 2013, 09:47 PM
Hello Princy,
Your post is really helpful.
I have the same problem like Pablo but when I test your code and pass the id, it does not work.
Can you help me with the full code please?
Thank you.
Your post is really helpful.
I have the same problem like Pablo but when I test your code and pass the id, it does not work.
Can you help me with the full code please?
Thank you.
0
Hello Alan,
I have just answer your ticket but I will also paste my reply here if any one else is looking for the same solution.
To get the id of the appointment you clicked on you can use the OnClientTimeSlotContextMenu client-side event along with the following function definition:
Regards,
Kate
Telerik
I have just answer your ticket but I will also paste my reply here if any one else is looking for the same solution.
To get the id of the appointment you clicked on you can use the OnClientTimeSlotContextMenu client-side event along with the following function definition:
function
OnClientTimeSlotContextMenu(sender, args) {
args.get_appointment().get_id();
}
Regards,
Kate
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
murugan
Top achievements
Rank 1
answered on 04 May 2017, 11:46 AM
hello mam,
plz help me.... how to display popup with event description when onclick in the telerik radschedular date event.
how to exactly get the date event description with radwindow in onclick event in telerik radschedular(calendar)
i display the rad window in the from your code but i dont know how to pass the date event description in onclick event.
thanks in advance