Beginner's questions about tooltips

3 posts, 1 answers
  1. Boris
    Boris avatar
    289 posts
    Member since:
    Oct 2012

    Posted 13 Dec 2012 Link to this post

    I've basically put in a minimal tooltip on a RadGrid based on this demo:

    2 questions.

    1.  Are the techniques described here still fundamentally sound?

    2.  I'm binding a RadTextBox to the return from a LinqToSql query.  The textbox is in multiline mode. The field it's bound to is set in another screen using the RadEditor.  i.e. it's rich text.   I was trying to see what would happen if I entered a particularly long string. I'm still testing but apparently sending it a string containing a great deal of HTML markup causes a RadToolTipManager response error = 500.  

    (This is in part a 'political' question.  The powers that be like the RadEditor and how it allows 'colorful' text.  In this case I'm wondering if it's a good idea.  For that matter I wonder if including a RadEditor in read-only mode in the popup would be practical.)
  2. Answer
    Marin Bratanov
    Marin Bratanov avatar
    4442 posts

    Posted 14 Dec 2012 Link to this post

    Hi Boris,

    The demo that is linked in the other thread is still live and is still a valid approach to do this, so you can use it as base for your development.

    On the error with long text - I advise that you add a breakpoint in your code and step through it so you can see the actual server error, as what you receive is the MS AJAX wrapper for an error during a partial postback. It is also possible that you have exceeded the maximum request length allowed by your web.config (see maxRequestLength in httpRuntime).

    On the difference between RadEditor and RadTextBox - RadEditor is a rich text editor that outputs HTML, so a colored text would be a combination of a span element (or some other container) and some CSS, the color property. This cannot be displayed in a RadTextBox, as it only takes a regular string and not HTML markup. If you want to display content taken from RadEditor, or generally some HTML you can use a simple wrapper like an ASP panel, Label or Literal. If you do not need the editing functionality of the RadEditor you needn't add it to the content, it will result in loading more HTML, more CSS and more scripts than needed.

    All the best,
    Marin Bratanov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. Boris
    Boris avatar
    289 posts
    Member since:
    Oct 2012

    Posted 17 Dec 2012 Link to this post

    Actually in this case I finally persuaded everyone that fancy fonts were pointless and we went with plain text.  

Back to Top