How to set a Tooltip on a RadPanelbarGroupElement?

6 posts, 0 answers
  1. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 24 Jan 2008 Link to this post

    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
  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 28 Jan 2008 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 28 Jan 2008 Link to this post

    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
  5. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 28 Jan 2008 Link to this post

    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
  6. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 28 Jan 2008 Link to this post

    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
  7. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 29 Jan 2008 Link to this post

    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
Back to Top
UI for WinForms is Visual Studio 2017 Ready