Disable small inbuilt popup on timeslot click

3 posts, 0 answers
  1. Navya
    Navya avatar
    14 posts
    Member since:
    Aug 2011

    Posted 01 Aug 2011 Link to this post

    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. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 03 Aug 2011 Link to this post

    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.

  3. Navya
    Navya avatar
    14 posts
    Member since:
    Aug 2011

    Posted 03 Aug 2011 Link to this post

    Thank you, I will try with this code.
Back to Top