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

Visibility Helpbutton

6 Answers 163 Views
Wizard
This is a migrated thread and some comments may be shown as answers.
ronny
Top achievements
Rank 1
ronny asked on 06 Apr 2011, 01:39 PM
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.

6 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 06 Apr 2011, 05:04 PM
Hello Ronny,

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

Hope that helps
Richard
0
ronny
Top achievements
Rank 1
answered on 07 Apr 2011, 08:05 AM
Thanks for the tip, that works. But it`s a little bit confusing, that i must set it per code.

Friendly regards, Ronny.
0
ronny
Top achievements
Rank 1
answered on 08 Apr 2011, 12:05 PM
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
0
Richard Slade
Top achievements
Rank 2
answered on 08 Apr 2011, 12:19 PM
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
0
ronny
Top achievements
Rank 1
answered on 08 Apr 2011, 02:13 PM
Oh, i didn`t think about that.

Thanks and regards, Ronny.
0
Jack
Telerik team
answered on 13 Apr 2011, 10:34 AM
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
Tags
Wizard
Asked by
ronny
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
ronny
Top achievements
Rank 1
Jack
Telerik team
Share this question
or