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

How to set a Tooltip on a RadPanelbarGroupElement?

5 Answers 99 Views
Panelbar (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
ManniAT
Top achievements
Rank 2
ManniAT asked on 24 Jan 2008, 11:55 AM
Hi,

I have an app where some UI-Element Text strings must be set from a DB.
The first approach was to iterate through the forms controls and set "Text" or "Caption" on the elemnts depending on their Name (ID).

This should also be done for Tooltips.

First problem - RadPanelGroupElement is not a control.
I could solve this via setting the controls public and working with reflection.

But the next problem is - how to set a ToolTip to RadPanelGroupElement?
Since RadPanelGroupElement is no control tooltip1.SetToolTip(RadPanelGroupElement1,"my Text") does not work.

I can set the tooltip for the PanelBar - but this shows ONE tooltip on every panel (always the same).
What I was looking for - each panel it's own tooltip.
Next I found a property on the RadPanelGroupElement called ToolTipText.

Looked like what I what I was searching for.
But whatever value I set - nothing happens.

If I set the ToolTip for the PanelBar - I always get this one.
--regardless what I enter in ToolTipText for the panels.
If I do NOT set TT for the PanelBar - I get no ToolTip at all.

My Questions:
-What is the use of ToolTipText on the RadPanelGroupElement element?
-How can I build a panelbar where every Panel has it's own Tooltip?

Regards

Manfred

5 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 28 Jan 2008, 11:55 AM
Hello Manfred,

You have properly used the ToolTipText property but in addition to that, you need to set the AutoToolTip property to true. Consider the sample below:
 
  this.radPanelBarGroupElement1.GetCaptionElement().AutoToolTip = true;
  this.radPanelBarGroupElement1.GetCaptionElement().ToolTipText = "Some text";


I've forwarded this to the documentation team to include it in the help files.

Please, feel free to write us back if you have further questions.

Greetings,
Boyko Markov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
ManniAT
Top achievements
Rank 2
answered on 28 Jan 2008, 12:49 PM
Hi,

I guess (following your reply) there is a bug.

You wrote:
You have properly used the ToolTipText property but in addition to that, you need to set the AutoToolTip property to true.

I did it (in Properties) - but no Tooltip is shown up!!!!
So what you told "should" work (I'v overseen the AutoToolTip) - but it does not!! 

Further you wrote:
Consider the sample below:
  this.radPanelBarGroupElement1.GetCaptionElement().AutoToolTip = true;
  this.radPanelBarGroupElement1.GetCaptionElement().ToolTipText = "Some text";


Following this snippet your snippet my app works now.
But what I set are the porperties of the "CaptionElement" of the Element (only possilbe at runtime).
Not (as expected and tried with the properties) the properties of the Element itself (also setabel in desing).

Thanks

Manfred
0
Boyko Markov
Telerik team
answered on 28 Jan 2008, 07:04 PM
Hi Manfred,

The reason why you cannot set the property of the caption element in design time is because the caption element is a child, which cannot be accessed. What I mean is that you can set the properties of the RadPanelBarGroupElement (which is visible in design time), but you cannot set the properties of its children (such as the caption element, which cannot be accessed in design time). The caption element's properties can be set only in code.

Please write me back if you need more help.
 

Kind regards,
Boyko Markov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
ManniAT
Top achievements
Rank 2
answered on 28 Jan 2008, 10:28 PM
Maybe you missunderstood me.

What is the reason (use) for the properties of the GroupElement's properties
TooltipText - AutoToolTip.

It seem as if they have no effect!

I expext that they set the tooltip of the element.
Regardless how they are internaly routed (maybe as property which sets the captions TTT and ATT).

Regards

Manfred
0
Boyko Markov
Telerik team
answered on 29 Jan 2008, 01:58 PM
Hello Manfred,

Thank you for your reply.

I got your point and I will implement it so that when you set ToolTipText and AutoToolTip properties of RadPanelBarGroupElement, they will be automatically populated to its child RadPanelBarCaptionElement objects.

Greetings,
Boyko Markov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Panelbar (obsolete as of Q2 2010)
Asked by
ManniAT
Top achievements
Rank 2
Answers by
Boyko Markov
Telerik team
ManniAT
Top achievements
Rank 2
Share this question
or