Make Tooltip bigger?

2 posts, 0 answers
  1. Jeremy
    Jeremy avatar
    96 posts
    Member since:
    Mar 2010

    Posted 06 Jul 2010 Link to this post

    Hi

    I am using the ajax radgrid version 2010.1.519.35 and displaying part of a long piece of text in a column. The complete text I display in the tooltip like so:
    protected void rgViews_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) 
          if (e.Item is Telerik.Web.UI.GridDataItem) 
          { 
                string fulltext = e.Item.Cells[3].Text; 
                if (e.Item.Cells[3].Text.Length >= 70) 
                { 
                      e.Item.Cells[3].Text = e.Item.Cells[3].Text.Substring(0, 70) + " ..."; 
                      e.Item.Cells[3].ToolTip = fulltext.Replace("\r\n", " ").Replace("\t", ""); 
                } 
          } 
    The tooltips displays fine in firefox 3.6.2, resizing to fit the data, - but the problem is in ie8 the tooltip size seems to max out at about 250px wide by 200px high, which truncates the data in the tooltip. Is there any way of making the tooltip bigger?

    Kind Regards,
    Jeremy
  2. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 07 Jul 2010 Link to this post

    Hi Jeremy,

    You cannot control the size of system browser tooltips, but you can use RadToolTip instead:

    http://demos.telerik.com/aspnet-ajax/tooltip/examples/targetcontrolsandajax/defaultcs.aspx?product=grid

    Greetings,
    Dimo
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top