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

GridViewComboBoxColumn DropDownClosed Event

4 Answers 183 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Art
Top achievements
Rank 1
Art asked on 02 Oct 2015, 03:22 AM

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

4 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 02 Oct 2015, 11:57 AM
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
0
Art
Top achievements
Rank 1
answered on 02 Oct 2015, 11:29 PM

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

0
Art
Top achievements
Rank 1
answered on 04 Oct 2015, 01:24 AM
Never-mind, I got it.
0
Dimitar
Telerik team
answered on 05 Oct 2015, 10:09 AM
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
Tags
GridView
Asked by
Art
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Art
Top achievements
Rank 1
Share this question
or