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

Check Box on Ribbon

2 Answers 132 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 25 Jan 2011, 04:24 PM
I have a series of check boxes on my rad ribbon bar which I use to quickly filter a grid. I am handling the Click event of the RadCheckBoxElement, this calls a method to Refresh the grid, the problem is that the checked value of the control is not being passed correctly to the toggle state property, e.g. when it's ticked it passes false, when it's unticked it passes true.
I know I am doing something stupid, but can somebody please advise what...

Justin

2 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 25 Jan 2011, 09:48 PM
Hello Justin,

You can handle the toggle state changed event in the following way
Private Sub RadCheckBoxElement1_ToggleStateChanged(ByVal sender As System.Object, ByVal args As Telerik.WinControls.UI.StateChangedEventArgs) Handles RadCheckBoxElement1.ToggleStateChanged
    If args.ToggleState = Telerik.WinControls.Enumerations.ToggleState.On Then
        MessageBox.Show("Check On")
    Else
        MessageBox.Show("Check Off")
    End If
End Sub

Hope that helps but let me know if you have any questions
Richard
0
Richard Slade
Top achievements
Rank 2
answered on 27 Jan 2011, 02:52 PM
Hello,

Did this help? If so please remember to mark as answer. If you need more assistance, just let me know
Thanks
Richard
Tags
RibbonBar
Asked by
Justin
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Share this question
or