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

Prevent tooltip display during event dragging

7 Answers 487 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
COLIN
Top achievements
Rank 1
COLIN asked on 18 Nov 2014, 04:15 PM
Hi,

I'm using the technique described in http://www.telerik.com/forums/config-tooltip-on-event-and-on-editor-event to display tooltips in Kendo Scheduler Timeline view. It works nice until I start dragging an event. When an event is being dragged, the tooltip moves to the top left corner. How to hide the tooltip when I start dragging an event?

7 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 20 Nov 2014, 09:52 AM
Hi Pawel,

I tried to reproduce the described behavior using the Kendo UI 2014 Q3 official release but to no avail - everything is working as expected on our side (as seen in this screencast). Could you please upgrade to the latest official release and let us know of the result?

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
COLIN
Top achievements
Rank 1
answered on 20 Nov 2014, 03:08 PM
Hi Vladimir,

Please check this example: http://dojo.telerik.com/IziME/7
It happens after about one second from the moment you start dragging.

Regards,
Pawel
http://www.telerik.com/forums/prevent-tooltip-display-during-event-dragging
0
COLIN
Top achievements
Rank 1
answered on 20 Nov 2014, 03:08 PM
Hi Vladimir,

Please check this example: http://dojo.telerik.com/IziME/7
It happens after about one second from the moment you start dragging.

Regards,
Pawel
0
Vladimir Iliev
Telerik team
answered on 24 Nov 2014, 10:10 AM
Hello Pawel,

You can improve current behavior by excluding the drag hint CSS class from the tooltip "filter" as follows:

$("#scheduler").kendoTooltip({
    filter: ".k-event:not('.k-event-drag-hint')",
        position: "top",
        width: 250,
        content: kendo.template($('#template').html())
    });

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
COLIN
Top achievements
Rank 1
answered on 04 Dec 2014, 02:32 PM
Hi Vladimir,

 

This is better but what I want is to hide tooltip completely
once I start the dragging operation.

 

Regards,

 

Pawel
0
Vladimir Iliev
Telerik team
answered on 08 Dec 2014, 03:29 PM
Hi Pawel,

Currently we have no such example which we can provide, however (for example) you can use the scheduler events to apply custom CSS class to the cells where you are dragging currently and add this class to the tooltip "filter".

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
COLIN
Top achievements
Rank 1
answered on 09 Dec 2014, 03:35 PM
Hi Vladimir,

This doesn't work. Probably because the tooltip is already displayed.

I used the moveStart event:

moveStart = function (e) {
                var element = $('[data-uid=' + e.event.uid + ']');
                element.addClass('k-event-drag-hint');
            };


The filter:

filter: '.k-event:not(.k-event-drag-hint)',

Regards,

Pawel
Tags
Scheduler
Asked by
COLIN
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
COLIN
Top achievements
Rank 1
Share this question
or