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

Grid change ToolTip position

2 Answers 61 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Max
Top achievements
Rank 1
Max asked on 05 Jan 2017, 11:04 AM

Hi.

I have a tooltip with a list of checkbox to control a visibility of grid columns.

I change de position of a tooltipo on show by a fixed position.

 

Its work fine with columns where rows had one line, but when a row have more than one line the grid resize his height and change de position of a tooltip.

When this occurs tooltip go outside a viewport, but keep open.

 

How can I prevent this change of position of a tooltip.

2 Answers, 1 is accepted

Sort by
0
Max
Top achievements
Rank 1
answered on 06 Jan 2017, 03:58 PM

To solve the problem I rewrited KendoGrid.hideColumn and ToolTip.show to recalculate the correct position of a tooltip.
I change the position of a tooltip to "absolute" and calculeted position with base on parent conteiner.

With this changes the problem was resolved.

0
Dimiter Topalov
Telerik team
answered on 06 Jan 2017, 04:09 PM
Hi Max,

Good job resolving the issue. The described approach seems valid for the scenario. Let us know if you have other questions on the topic.

Regards,
Dimiter Topalov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
ToolTip
Asked by
Max
Top achievements
Rank 1
Answers by
Max
Top achievements
Rank 1
Dimiter Topalov
Telerik team
Share this question
or