Visibility Helpbutton

7 posts, 1 answers
  1. ronny
    ronny avatar
    15 posts
    Member since:
    Mar 2011

    Posted 06 Apr 2011 Link to this post

    Hello,

    how i can hidden the HelpButton? In the UI-Elements i can set the Visibility to false of the Base Element, which is the help button [i think so]. But it didn`t work. Is there a workaround?

    Kind regards, Ronny.
  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 06 Apr 2011 Link to this post

    Hello Ronny,

    You can hide the Help button in the following way:
    this.radWizard1.HelpButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;

    Hope that helps
    Richard
  3. UI for WinForms is Visual Studio 2017 Ready
  4. ronny
    ronny avatar
    15 posts
    Member since:
    Mar 2011

    Posted 07 Apr 2011 Link to this post

    Thanks for the tip, that works. But it`s a little bit confusing, that i must set it per code.

    Friendly regards, Ronny.
  5. ronny
    ronny avatar
    15 posts
    Member since:
    Mar 2011

    Posted 08 Apr 2011 Link to this post

    Hello Richard,

    i think there is an issue. If i set the visibilty of the help button to hidden or collapsed in the Wizard Load-Event, then the help button will be not displayed at the startup. That`s ok. But if you click on the next button and the next pages appears, then the help button will be displayed again. Why?

    Only the following hides the help button on every pages:
    Private Sub OnISRadWizard_SelectedPageChanged(sender As System.Object, e As Telerik.WinControls.UI.SelectedPageChangedEventArgs) Handles ISRadWizard.SelectedPageChanged
         Me.ISRadWizard.HelpButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed
    End Sub

    kindly regards
  6. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 08 Apr 2011 Link to this post

    Hello,

    As far as I know, this is by design. All the buttons will reset to default visual state on each page change. This allows you to control the buttons on page changed in the following way

    Public Class Form1
      
        Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
            Me.RadWizard1.SelectedPage = WizardWelcomePage1
        End Sub
      
        Private Sub RadWizard1_SelectedPageChanged(sender As System.Object, e As Telerik.WinControls.UI.SelectedPageChangedEventArgs) Handles RadWizard1.SelectedPageChanged
            Select Case e.SelectedPage.Name
                Case WizardWelcomePage1.Name, WizardCompletionPage1.Name
                    Me.RadWizard1.BackButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed
            End Select
            Me.RadWizard1.HelpButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed
        End Sub
      
    End Class

    hope that helps
    Richard
  7. ronny
    ronny avatar
    15 posts
    Member since:
    Mar 2011

    Posted 08 Apr 2011 Link to this post

    Oh, i didn`t think about that.

    Thanks and regards, Ronny.
  8. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 13 Apr 2011 Link to this post

    Hello guys,

    The discussed from you approach for defining 'command area' buttons visibility is the correct one for the current version of RadWizard. However, we noticed that this behavior can cause confusion and that is why we decided to improve it in our upcoming service pack.

    The new behavior will be the following: when you define the visibility of a button, it will have higher priority than the regular visibility settings. It will be enough to define it only once and do not use any events.

    Should you have any questions, do not hesitate to contact us.

    Best regards,
    Jack
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top
UI for WinForms is Visual Studio 2017 Ready