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

SuggestAppend behavior unexpected

3 Answers 49 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
Jay
Top achievements
Rank 1
Jay asked on 13 Jan 2016, 12:43 AM

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.

3 Answers, 1 is accepted

Sort by
0
Jay
Top achievements
Rank 1
answered on 13 Jan 2016, 01:49 AM

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? 


 
 
0
Jay
Top achievements
Rank 1
answered on 13 Jan 2016, 02:09 AM

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


 
0
Hristo
Telerik team
answered on 15 Jan 2016, 03:58 PM
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
Tags
MultiColumn ComboBox
Asked by
Jay
Top achievements
Rank 1
Answers by
Jay
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or