Check Box on Ribbon

3 posts, 1 answers
  1. Justin
    Justin avatar
    4 posts
    Member since:
    Jan 2011

    Posted 25 Jan 2011 Link to this post

    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. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 25 Jan 2011 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 27 Jan 2011 Link to this post

    Hello,

    Did this help? If so please remember to mark as answer. If you need more assistance, just let me know
    Thanks
    Richard
Back to Top