Why is there a "OnClientAppointmentDoubleClick" client event, but not a "OnClientTimeSlotDoubleClick" event? I found it very annoying that I now only need to click once (OnClientTimeSlotClick), to open my customized AdvancedForm. Would it be possible to make this a doubleclick?
10 Answers, 1 is accepted
0
Hello Datamex,
OnClientTimeSlotDoubleClick will not be much different from OnClientAppointmentInserting. Try using the latter instead.
Greetings,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
OnClientTimeSlotDoubleClick will not be much different from OnClientAppointmentInserting. Try using the latter instead.
Greetings,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0

Datamex
Top achievements
Rank 2
answered on 18 Aug 2009, 01:23 PM
Hello Peter,
We tried the onClientAppointmentInserting event, but nothing seems to happen.
For your information we are using webservices with an advanced form.
We tried the onClientAppointmentInserting event, but nothing seems to happen.
For your information we are using webservices with an advanced form.
0
Hello Datamex,
Still,OnClientAppointmentInserting should be raised. Can you try attaching to the event in a simple scenario with default RadScheduler settings?
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Still,OnClientAppointmentInserting should be raised. Can you try attaching to the event in a simple scenario with default RadScheduler settings?
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0

Datamex
Top achievements
Rank 2
answered on 25 Sep 2009, 08:57 AM
Dear Peter,
Maybe I should point out that I'm using Webservices, in combination with a customized AdvancedForm. I want to use the double click on the timeslot to raise the AdvancedForm. This AdvancedForm consists of one single UserControl. because I also want that UserControl to return in another screen in which we can insert appointments more rapidly than constantly clicking on the scheduler (we do not want to be dependent of the RadScheduler). This is why we can't make use of the normal way the AdvancedForm is being used, because then the usercontrol wouldn't be able to show up without an instance of the Scheduler.
I'm now using the OnClientTimeSlotClicked-event to open our RadWindow:
This works, but the popup is already opened when clicked once on timeslot. I want this to be a double click. Would this be possible?
Maybe I should point out that I'm using Webservices, in combination with a customized AdvancedForm. I want to use the double click on the timeslot to raise the AdvancedForm. This AdvancedForm consists of one single UserControl. because I also want that UserControl to return in another screen in which we can insert appointments more rapidly than constantly clicking on the scheduler (we do not want to be dependent of the RadScheduler). This is why we can't make use of the normal way the AdvancedForm is being used, because then the usercontrol wouldn't be able to show up without an instance of the Scheduler.
I'm now using the OnClientTimeSlotClicked-event to open our RadWindow:
function ClientTimeSlotClick(sender, e) { |
var oWindow = $find('<%= AppointmentWindow.ClientID %>'); |
var _slot = e.get_targetSlot(); |
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(); |
window.radopen("AppointmentDetails.aspx?StartTime=" + _startTime + "&EndTime=" + _endTime + "&EmployeeID=" + _employeeID, "AppointmentWindow"); |
oWindow.set_title("Insert new appointment"); |
} |
This works, but the popup is already opened when clicked once on timeslot. I want this to be a double click. Would this be possible?
0
Hello,
Can you isolate the problem with OnClientAppointmentInserting not firing in a simple demo and send it to us via a support ticket?
Kind regards,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Can you isolate the problem with OnClientAppointmentInserting not firing in a simple demo and send it to us via a support ticket?
Kind regards,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0

Datamex
Top achievements
Rank 2
answered on 05 Oct 2009, 11:40 AM
Thank you for submitting your inquiry to the Telerik Support.
Your ticket ID is : 247992
For reference, please use this number when communicating with the Telerik support about this inquiry.
0

shinu rag
Top achievements
Rank 1
answered on 05 Sep 2011, 08:34 AM
hi..
me too need this..
let me know how it works on OnClientAppointmentInserting client event..
this event is not firing.....
me too need this..
let me know how it works on OnClientAppointmentInserting client event..
this event is not firing.....
0
Hello Shinu,
You can check this demo that shows that the event fires as expected.
Regards, Peter
the Telerik team
You can check this demo that shows that the event fires as expected.
Regards, Peter
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
0

shinu rag
Top achievements
Rank 1
answered on 12 Sep 2011, 07:06 AM
hi peter..
anyway thanks for ur reply..
now its working, fine..
but i need to popup one custom window instead of default one...
now both window comes while double click on the scheduler..
here is my js code
then i attached one screen shot.. please check it..
Thanks
Shinu
anyway thanks for ur reply..
now its working, fine..
but i need to popup one custom window instead of default one...
now both window comes while double click on the scheduler..
here is my js code
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();
return
false
;
}
then i attached one screen shot.. please check it..
Thanks
Shinu
0

shinu rag
Top achievements
Rank 1
answered on 13 Sep 2011, 12:55 PM
hi.. peter
got the solution...
i miss the code eventArgs.set_cancel(true);
now its ok...
thanks...
got the solution...
i miss the code eventArgs.set_cancel(true);
now its ok...
thanks...