Width 100% no padding or margin

3 posts, 0 answers
  1. Klayton Fratoni
    Klayton Fratoni avatar
    4 posts
    Member since:
    May 2010

    Posted 09 May 2011 Link to this post

    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. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 11 May 2011 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Klayton Fratoni
    Klayton Fratoni avatar
    4 posts
    Member since:
    May 2010

    Posted 12 May 2011 Link to this post

    perfect.

    thanks!

Back to Top