SuggestAppend behavior unexpected

4 posts, 0 answers
  1. Jay
    Jay avatar
    9 posts
    Member since:
    Feb 2011

    Posted 12 Jan Link to this post

    I upgraded from 2014 controls to 2015 and the suggestappend mode of the multi-column combo box (both in grid and as stand along control) no longer works as expected or as it used to.  When I begin typing in the field, it correctly performs the append part and attempts to complete the entry based on the items in the list.  It also correctly pops the drop list.

    However, when I hit 'tab' without typing all of the characters, it does not change the value to the suggested.  Also it does not automatically select the desired row in the drop down like it did in 2014.  Am I missing something?  I created a small project that demonstrates if it would be helpful for me to send that.

     

    Example:  See the screenshot.  The class column is a multicombo.  I key in the 'N' and it correctly completes it with 'NESTLE'. But the window that popped does not highlight the first 'N' option as it used to and when I next hit tab key, it does not set the value of the multicombo cell to 'NESTLE' but leaves it as the prior value until I type in the entire word.

  2. Jay
    Jay avatar
    9 posts
    Member since:
    Feb 2011

    Posted 12 Jan Link to this post

    For the standalone control, I figured out that it needs to have a filter descriptor in order for it to work (accessible once you link in the Telerik.WinControls.Data library).  This code is critical:

     

     Dim descriptor As New FilterDescriptor(Me.RadMultiColumnComboBox1.DisplayMember, FilterOperator.StartsWith, String.Empty)
     Me.RadMultiColumnComboBox1.EditorControl.FilterDescriptors.Add(descriptor)

     

    I tried similar fix for GridViewMultiComboBoxColumn and it does not have an editorcontrol property to apply filterdescriptors to.  Any suggestions on how to get that same behavior that now works correctly on the standalone multicolumndrop? 


     
     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jay
    Jay avatar
    9 posts
    Member since:
    Feb 2011

    Posted 12 Jan Link to this post

    I can't believe I spent so many hours on this stupid problem and then shortly after posting on this forum as a kind of last resort, I figured it out.

    FYI - to get the functionality to work correctly on the multi-column in the grid, add this to the CellEditorInitialized event:

     

                If TypeOf e.ActiveEditor Is RadMultiColumnComboBoxElement Then
                    Dim editor As RadMultiColumnComboBoxElement
                    editor = e.ActiveEditor
                    editor.AutoCompleteMode = AutoCompleteMode.SuggestAppend
                    Dim descriptor As New FilterDescriptor(editor.DisplayMember, FilterOperator.StartsWith, String.Empty)
                    editor.EditorControl.FilterDescriptors.Add(descriptor)
                End If


     
  5. Hristo Merdjanov
    Admin
    Hristo Merdjanov avatar
    710 posts

    Posted 15 Jan Link to this post

    Hi Jay,

    Thank you for writing and sharing your solution with the community.

    The incorrect behavior described in your first post is a known issue in RadGridView which was fixed with our official Q1 2016 release. If it is possible for your please upgrade to the latest version which we released this Wednesday.

    I am sending you attached a gif file showing the behavior with mentioned above Q1 2016 release. 

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Regards,
    Hristo Merdjanov
    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