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

Beginner's questions about tooltips

2 Answers 40 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Boris
Top achievements
Rank 1
Boris asked on 13 Dec 2012, 03:48 PM
I've basically put in a minimal tooltip on a RadGrid based on this demo:   
http://www.telerik.com/community/forums/aspnet-ajax/grid/tooltip-per-radgrid-row-example-http-demos-telerik-com-aspnet-ajax-tooltip-examples-targetcontrolsandajax-defaultcs-aspx.aspx

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 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 14 Dec 2012, 12:45 PM
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.
0
Boris
Top achievements
Rank 1
answered on 17 Dec 2012, 10:15 PM
Actually in this case I finally persuaded everyone that fancy fonts were pointless and we went with plain text.  

Thanks.
Tags
ToolTip
Asked by
Boris
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Boris
Top achievements
Rank 1
Share this question
or