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

customize tooltip

2 Answers 292 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 30 May 2013, 10:06 AM
i was looking here
http://docs.kendoui.com/api/web/tooltip
after some posibilities to customize the tootip,but i did not find.
i would like to setup the dimensions of the container where is the text,also the color,and maybe the position or even the form of that poiting arrow.i noticed that by default is a gray color,and a perfect triangle as an arrow.

How can i customize the style for the tooltip?

Regards,
Daniel

2 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 31 May 2013, 01:24 PM
Hi Daniel,

You could customize the Tooltip's style via the configuration options. Like here:

@(Html.Kendo().Tooltip()
  //....
  //set Tooltip's width
  .Width(420)
  //set Tooltip's height
  .Height(500)
  //set Tooltip's position
  .Position(TooltipPosition.Right)
)
Actually the arrow is a right border set to the .k-callout-w element and I am afraid it is not possible to change its form. As for its background you should override the default styling. As an example: 
<style>
.k-callout-w{
    border-right-color: red;
}
</style>

Also, the following CSS should help to change the arrow's position: 
<style>
.k-callout.k-callout-w{
    top: 0 !important; //specify the arrow's position
}
</style>

I hope this information helps. 

Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Daniel
Top achievements
Rank 1
answered on 03 Jun 2013, 08:30 AM
ok,thank you for the informations.
Tags
ToolTip
Asked by
Daniel
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or