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

Kendo Tooltip not shown correct first time, but always after

1 Answer 413 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 23 Sep 2020, 06:43 AM

Hi, 

When I'm customizing the kendo tooltip with a custom class, setting the custom class to be added in the show event, the position of the toolbar is not correctly loaded when I'm setting a padding in this class. This happens only the first time showing the toolbar.

Is this an known bug that I should know about? Is there a fix or workaround for this?

I'm using kendo-ui": "^2019.1.2"

 

script:
show: (e) => {e.sender.popup.element.addClass("myclass");},

sass:

.myclass {
          padding: 10px;

        }

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 24 Sep 2020, 02:32 PM

Hello Chris,

Thank you for the provided resources.

The reason for the behavior is the ToolTip is rendered before the class is being added in the show event. That is why every next appearance of the ToolTip is displayed as expected. I would recommend either adding the class to the element, or adding the class in the document.ready function instead of in the show event.

I hope I was helpful. Let me know how that works for you.

Regards,
Martin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
ToolTip
Asked by
Chris
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or