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

Width 100% no padding or margin

2 Answers 41 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Klayton Fratoni
Top achievements
Rank 1
Klayton Fratoni asked on 09 May 2011, 11:21 PM
Hello everybody,

When I am using radtooltip 100% width on the left and right appear smaller spaces, which can not occupy the entire width of the page. How do I remove these spaces?

Thanks

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 11 May 2011, 04:49 PM

Hi Klayton,

Setting the RadToolTip's size in percent is not valid and is not supported. If you wish to modify its size dynamically I can suggest that you use the OnClientBeforeShow event and modify the content element. For example:

function OnClientBeforeShow(sender, args)
{
    sender.set_width(1000);
}

Please note that I have hardcoded a value of 1000 pixels, but you can detect the browsers window's dimensions and use them instead.

The spaces you are referring to are most likely the padding and/or margin that the html, body and form elements have by default in the browser and you might want to reset them in your CSS.



Regards,
Marin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Klayton Fratoni
Top achievements
Rank 1
answered on 12 May 2011, 07:30 PM
perfect.

thanks!

Tags
ToolTip
Asked by
Klayton Fratoni
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Klayton Fratoni
Top achievements
Rank 1
Share this question
or