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

GridViewComboBox dynamic list

1 Answer 69 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Curtis
Top achievements
Rank 1
Iron
Iron
Veteran
Curtis asked on 02 Aug 2017, 12:31 AM

I'm building a grid where a GridViewComboBox will have its list dynamically updated based on the selection of an item in a previous column.  I've read numerous posts about how to and how not to do this and they all make sense but I'm having one tiny problem that I cannot resolve (its because of my newness to this Grid I'm sure!)

 

Here's the code:

Private Sub ATGrid_EditorRequired(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.EditorRequiredEventArgs) Handles ATGrid.EditorRequired
   If ATGrid.CurrentColumn.Name.ToLower = "messagecodetype" Then
      If e.EditorType Is GetType(RadComboBoxEditor) Then
         RemoveHandler DirectCast(e.Editor, RadComboBoxEditor).ValueChanged, AddressOf Editor_ValueChanged
         AddHandler DirectCast(e.Editor, RadComboBoxEditor).ValueChanged, AddressOf Editor_ValueChanged
      End If
   End If
End Sub

See where it says "RadComboBoxEditor" ?  My Visual Studio 2017 code says, "RadComboBoxEditor not defined"

My form imports the following:

Imports Telerik.WinControls
Imports Telerik.WinControls.UI

but clearly this object is either not exposed or not found in either namespaces.  Can someone direct me to the correct namespace, please?

 

Thanks much!

-Curtis

 

 

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 02 Aug 2017, 11:42 AM
Hello Curtis, 

Thank you for writing.  

I suppose that you use the latest version. Note that RadComboBoxEditor is replaced by a RadDropDownListEditor. I would recommend you to have a look at the following KB article which is quite useful on this topic: http://www.telerik.com/support/kb/winforms/gridview/details/cascading-comboboxes-in-radgridview

I hope this information helps. Should you have further questions I would be glad to help.

Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
Curtis
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or