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

Right Click Event for Time Slot

4 Answers 85 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
ramanaidu
Top achievements
Rank 1
ramanaidu asked on 08 Dec 2010, 07:26 AM
Hi..

I am very new to Scheduler and  i got faced several problems while using.Please help me out for the following issues.

  • My Requirement is , when i am trying to make a new appointment by right click on time slot which is less than my current system time there should not be a context menu displayed instead it shows an alert. I am unable to trigger the right click event for time slot to check time. I need this in Asp.Net application.
  • The second one is when i am trying to delete the appointment,  i need to show a pop up window where i need to get a feedback from the user. So how can i able to display the pop up window has some text box fields.

Thanks,
Ramanaidu.K

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 08 Dec 2010, 02:48 PM
Hi,


I believe, for the first requirement you can achieve this functionality by attaching "OnClientTimeSlotContextMenu" client event and checking for the time and show alert accordingly.

And for implementing second functionality, attach "OnClientAppointmentDeleting" event and open window using client code.


-Shinu.
0
ramanaidu
Top achievements
Rank 1
answered on 08 Dec 2010, 02:58 PM
Hii shinu...thank for your reply ..

I tried and got solution from OnClientTimeSlotContextMenu event to show an alert message when right click on Time Slot.But after closing of that alert it again shows TimeSlotContextMenu.In this scenario it should not be displayed after closing of alert message.This is what exactly my problem.Please help me out..

Thanks,
Ramanaidu.K
0
Nikolay Tsenkov
Telerik team
answered on 13 Dec 2010, 11:04 AM
Hello ramanaidu,

Could you, please, try it like that:
 - get the menu from the event arguments. Hide the menu with menu.hide().

Please, try that out and let me know the results.


Regards,
Nikolay Tsenkov
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Nikolay Tsenkov
Telerik team
answered on 13 Dec 2010, 11:07 AM
Hello ramanaidu,

Please, disregard my previous post! Sorry about that.

Could you, please, get the domEvent from the arguments (args.get_domEvent()) and cancel it using our cancelRawEvent ($telerik.cancelRawEvent(domEvent)) method.

This should do the job!


Regards,
Nikolay Tsenkov
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Scheduler
Asked by
ramanaidu
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
ramanaidu
Top achievements
Rank 1
Nikolay Tsenkov
Telerik team
Share this question
or