GridViewComboBoxColumn DropDownClosed Event

5 posts, 0 answers
  1. Art
    Art avatar
    54 posts
    Member since:
    Dec 2010

    Posted 01 Oct 2015 Link to this post

    I've created a GridViewComboBoxColumn and now I need to get the combobox's dropdownclosed event. Or possibly it's selectedvalue changed event. How do I create the handlers for those. In VB code please.

     

    Later

    Art

  2. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 02 Oct 2015 Link to this post

    Hi Art,

    Thank you fro contacting us.

    You can use the ValueChanged event or, you can use the CellEditorInitialized event to access the editor and subscribe to the PopupClosed event:
    Private Sub radGridView1_CellEditorInitialized(ByVal sender As Object, ByVal e As GridViewCellEventArgs)
        Dim element As RadMultiColumnComboBoxElement = TryCast(e.ActiveEditor, RadMultiColumnComboBoxElement)
        If element IsNot Nothing Then
            RemoveHandler element.PopupClosed, AddressOf element_PopupClosed
            AddHandler element.PopupClosed, AddressOf element_PopupClosed
        End If
    End Sub
     
    Private Sub element_PopupClosed(ByVal sender As Object, ByVal args As RadPopupClosedEventArgs)
     
    End Sub

    Please let me know if there is something else I can help you with. 
     
    Regards,
    Dimitar
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Art
    Art avatar
    54 posts
    Member since:
    Dec 2010

    Posted 02 Oct 2015 in reply to Dimitar Link to this post

    Thanks but that doesn't work because my column is a GridViewComboBoxColumn

     grdDrills.Columns(1) = New GridViewComboBoxColumn()     

                Dim col As GridViewComboBoxColumn = DirectCast(grdDrills.Columns(1), GridViewComboBoxColumn)
                col.DisplayMember = "display_member"
                col.ValueMember = "value_member"
                col.DataSource = proc.FillDataTable()

    Please show me how to do it with a  GridViewComboBoxColumn, or how to set the grid column up with a RadMultiColumnComboBoxElement 

    Thanks

    Art

  5. Art
    Art avatar
    54 posts
    Member since:
    Dec 2010

    Posted 03 Oct 2015 Link to this post

    Never-mind, I got it.
  6. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 05 Oct 2015 Link to this post

    Hi Art,

    I am glad that you have found a solution for your case. Do not hesitate to contact us if you have other questions.
     
    Regards,
    Dimitar
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top
UI for WinForms is Visual Studio 2017 Ready