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

[Solved] How can I turn off the pop-up form?

4 Answers 114 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Billy Pham
Top achievements
Rank 1
Billy Pham asked on 30 Jul 2009, 08:49 AM
How can I turn off the pop-up form when I double click on each time slot without setting ReadOnly="true". I want to navigate to another page upon double click on it instead.

Thank you.

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 30 Jul 2009, 09:15 AM
Hi Billy,

Try the following client code in order to prevent showing the editform when double-clicking the appointment in RadScheduler by attaching OnClientAppointmentEditing client event.

JavaScript:
 
<script type="text/javascript"
function OnClientAppointmentEditing(sender, eventArgs) 
      eventArgs.set_cancel(true);  // Cancel the event 
      window.location = 'http://www.google.com'; // Redirect to new page 
</script> 

-Shinu
0
Billy Pham
Top achievements
Rank 1
answered on 30 Jul 2009, 01:00 PM
Hi Shinu,

Thanks for your answer. Your code does navigate to other page.

However, It still pop up for a second and before navigating to other page. I want the form does not pop up, even in a tick.

Billy
0
Accepted
Peter
Telerik team
answered on 30 Jul 2009, 01:23 PM
Hello Billy,

Please, try handling OnClientAppointmentInserting in the same way Shinu suggested you handle OnClientAppointmentEditing.


All the best,
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
Billy Pham
Top achievements
Rank 1
answered on 31 Jul 2009, 05:49 AM
Thank you Peter.

Problem solved.
Tags
Scheduler
Asked by
Billy Pham
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Billy Pham
Top achievements
Rank 1
Peter
Telerik team
Share this question
or