We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to open the Quick Window in a Schedule programmatically?

Thread ID:

Created:

Updated:

Platform:

Replies:

146856 Aug 22,2019 06:17 PM UTC Aug 27,2019 04:20 AM UTC ASP.NET MVC 5
loading
Tags: Schedule
Toke Wivelsted
Asked On August 22, 2019 06:17 PM UTC

Hi,
I want to open the Quick Window when I hover over an appointment.
Is there any way to open the Quick Window for a specific appointment programmatically? I was thinking of something like the example below:

function OnAppointmentHover(args) {
     var schObj = $("#Schedule").data("ejSchedule"); 
     schObj.openQuickWindow(args.appointment);
}

Karthigeyan Krishnamurthi [Syncfusion]
Replied On August 23, 2019 09:20 AM UTC

Hi Toke 
 
Syncfusion greetings. 
 
We have achieved your requirement using appointmentHover event like below. 
 
appointmentHover: function(args) { 
this.element.find("#Appointment_"+args.appointment.AppTaskId)[0].click() 
} 
 
 
Note: It is applicable for MVC too. 
 
Regards,
Karthi 
 
 


Toke Wivelsted
Replied On August 23, 2019 12:25 PM UTC

The suggested solution will not work for me, as I have OnAppointmentClick set to open up a custom Editor window.
- Hover over appointment should show the Quick Window
- Click on appointment should open up the Edit Appointment Window

Using the suggested solution would open up the editor window whenever an appointment is "hovered" over.

Karthigeyan Krishnamurthi [Syncfusion]
Replied On August 26, 2019 09:22 AM UTC

 
Thanks for the update. 
 
Please use the flag variable like below to achieve your requirement. 
 
var Type = 'Click'; 
 
appointmentHover: function (args) { 
                    Type = 'Hover'; 
                    this.element.find("#Appointment_" + args.appointment.AppTaskId)[0].click() 
                } 
function OnAppointmentClick(args) { 
            if (Type != 'Hover') { 
                args.cancel = true; 
                if (!args.appointment.Recurrence) 
                    this._showAppointmentDetails(args.appointment.Guid, true); 
                else { 
                    if (ej.isNullOrUndefined(this._recurEditWindow)) this._renderRecurEditWindow(); 
                    this._parentId = args.appointment.ParentId; 
                    this._recurEditWindow.ejDialog("open"); 
                    this._recurEditWindow.focus(); 
                    this._deleteBeforeOpen(); 
                } 
            } 
            Type = 'Click'; 
        } 
 
Regards, 
Karthi 
 


Toke Wivelsted
Replied On August 26, 2019 10:55 AM UTC

Thank you, this will work.

Karthigeyan Krishnamurthi [Syncfusion]
Replied On August 27, 2019 04:20 AM UTC

Most welcome 😊 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon