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

Disable small inbuilt popup on timeslot click

2 Answers 40 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Navya
Top achievements
Rank 1
Navya asked on 01 Aug 2011, 01:53 PM
Hi,
I want to display a new child window(created by me) for creating a new appointment instead of the one which is built in Telerik Scheduler.
I have written java function to open the new window for 'OnClientTimeSlotClick' event. I want the new custom created window to open on double click of the timeslot, right now it is happening for single click as well. If I remove 'OnClientTimeSlotClick' from declaration, I get a small popup window with no controls on it. I want to get rid of that small popup and get my custom created screen as popup on double click of the timeslot. Please suggest.

Thanks,
Navya

2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 03 Aug 2011, 12:24 PM
Hello Navya,

You can use the approach from the External edin in RadDock demo. The important part is to cancel form creating (this will prevent the default form from showing up):
protected void RadScheduler1_FormCreating(object sender, SchedulerFormCreatingEventArgs e)
       {
           if (e.Mode == SchedulerFormMode.Insert || e.Mode == SchedulerFormMode.Edit)
           {
               EditedAppointment = e.Appointment;
               e.Cancel = true;
           }
 
           ScriptManager.RegisterStartupScript(Page, GetType(), "formScript", "Sys.Application.add_load(openForm);", true);
           PopulateEditForm(e.Appointment);
       }



All the best, Peter
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
Navya
Top achievements
Rank 1
answered on 03 Aug 2011, 01:01 PM
Thank you, I will try with this code.
Tags
Scheduler
Asked by
Navya
Top achievements
Rank 1
Answers by
Peter
Telerik team
Navya
Top achievements
Rank 1
Share this question
or