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

Positioning of controls inside ToolTip

2 Answers 52 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Coy
Top achievements
Rank 1
Coy asked on 11 Dec 2008, 07:21 PM
Hi,

I have a page that uses RadToolTipManager to display a tooltip for several elements in the page.  The tooltip contains 3 controls, a textbox, a label, and a button.  The textbox and the label text are populated dynamically.

Everything is working correctly, however, it appears that controls render horizontally when added to the controls collection.  Also, looking through all the documentation and examples, it appears that in every case, content is rendering from left to right.

I need to have these 3 controls stacked on top of each other, with textbox on top, label under the textbox, and the button on the bottom.

Is there a way to handle the positioning of these controls?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Accepted
Svetlina Anati
Telerik team
answered on 15 Dec 2008, 09:59 AM
Hi Coy,

The layout of the tooltip's content is not related to the RadToolTip control but to general ASP.NET and CSS knowledge. Please, implement the desired layout by using a standard asp: panel and after that either apply the same logic to the tooltip or simply show the styled panel inside it.

Regards,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Coy
Top achievements
Rank 1
answered on 15 Dec 2008, 05:24 PM
Hi Svetlina,

Thanks for clearing that up!

I actually found that I could use a textbox control with No border instead of a Label control, and the textbox was positioned under the textbox as expected.

I experienced some problems with using the Label control that should be noted.  First, the positioning of the Label control would always render to the right of the control it was next to in the collection.  Second, I would update the Text property of the label control in the Ajax_Update event and readd it to the controls collection, however, in the UI, the label text remained unchanged.  After debugging, the label text was indeed being changed but the changes were never reflected in the UI.  By changing the control to a textbox with no border, updating and adding it to the controls collection exactly the same way, the text property of the textbox was updated correctly in the UI.

Thanks for the help again,

Coy
Tags
ToolTip
Asked by
Coy
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Coy
Top achievements
Rank 1
Share this question
or