GridViewComboBox dynamic list

2 posts, 0 answers
  1. Curtis
    Curtis avatar
    64 posts
    Member since:
    Oct 2014

    Posted 01 Aug 2017 Link to this post

    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

     

     

  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3532 posts

    Posted 02 Aug 2017 Link to this post

    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.
Back to Top