Hello Telerik Team,
I want to open a one insert form on doubleclick of the time slot say appointment. Is there any server side events which make it possible.
What i done is calling the radwindow from client side and try to open the page in it.
<telerik:RadScheduler ID="RadScheduler1" runat="server" DataDescriptionField="status"
Height="500px" Width="1000px" DataEndField="endTime" DataKeyField="bike_ID" DataSourceID="SqlDataSource1"
DataStartField="startTime" DataSubjectField="subject" EnableDescriptionField="True"
OnClientAppointmentInserting="onAppointmentInserting" Skin="Vista" StartEditingInAdvancedForm="False"
StartInsertingInAdvancedForm="true">
<script type="text/javascript">
function onAppointmentInserting(sender, eventArgs) {
<telerik:RadWindow ID="RadWindowAppointment" runat="server" >
</telerik:RadWindow>
</script>
can you please suggest any example or how to proceed the same. I attached my appoitment .aspx page with this.
Thanks,
Malkesh
I want to open a one insert form on doubleclick of the time slot say appointment. Is there any server side events which make it possible.
What i done is calling the radwindow from client side and try to open the page in it.
<telerik:RadScheduler ID="RadScheduler1" runat="server" DataDescriptionField="status"
Height="500px" Width="1000px" DataEndField="endTime" DataKeyField="bike_ID" DataSourceID="SqlDataSource1"
DataStartField="startTime" DataSubjectField="subject" EnableDescriptionField="True"
OnClientAppointmentInserting="onAppointmentInserting" Skin="Vista" StartEditingInAdvancedForm="False"
StartInsertingInAdvancedForm="true">
<script type="text/javascript">
function onAppointmentInserting(sender, eventArgs) {
var
_slot = eventArgs.get_targetSlot();
var
oWindowAppnt=$find(
"<%= RadWindowAppointment.ClientID %>"
);
oWindowAppnt.setSize(510, 490);
var
_startTime = _slot.get_startTime().format(
"MMM dd, yyyy HH:mm:ss"
);
var
_endTime = _slot.get_endTime().format(
"MMM dd, yyyy HH:mm:ss"
);
var
_employeeID = _slot.get_resource().get_key();
oWindowAppnt.setUrl(
"appointment.aspx?appid=0&ST="
+_startTime +
"&ET="
+_endTime);
oWindowAppnt.add_close(OnClientCloseAppointment);
oWindowAppnt.set_modal(
true
);
oWindowAppnt.set_showContentDuringLoad(
false
);
oWindowAppnt.set_visibleTitlebar(
false
);
oWindowAppnt.set_visibleStatusbar(
false
);
oWindowAppnt.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move);
oWindowAppnt.show();
eventArgs.set_cancel(true);
return
false
;
}<telerik:RadWindow ID="RadWindowAppointment" runat="server" >
</telerik:RadWindow>
</script>
can you please suggest any example or how to proceed the same. I attached my appoitment .aspx page with this.
Thanks,
Malkesh