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

GridViewComboBoxColumn TextInput EditTrigger

5 Answers 115 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 11 Dec 2012, 10:33 PM
I have a GridViewComboBoxColumn in a RadGridView with IsComboBoxEditable = "True" and EditTriggers="CellClick,TextInput". When I start typing on a cell in this column, the cell enters edit mode as expected. The first character entered causes autocomplete to select the first matching item in the dropdown, but then the next character entered overwrites the first character and autocompletes starting with that character instead. For example, given the following items:
  • Apple
  • Banana
  • Carrot
If I type a "B" into the cell when it's not in edit mode, it enters edit mode, opens the dropdown, and autocompletes to Banana. If I then type "A", it clears out Banana and autocompletes to Apple, even though the "A" is the second letter of Banana.

From a cell that's not in edit mode, I'd like to be able to start typing and have the ComboBox behave as if it was already in edit mode, so that autocomplete works immediately. Is that possible?

5 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 12 Dec 2012, 09:03 AM
Hi Robert,

Could you download our latest internal build and test your application with it ?
Do you get the same behavior ?  

Greetings,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Robert
Top achievements
Rank 1
answered on 12 Dec 2012, 03:27 PM
I just tried out the latest internal build, I get the same behavior.
0
Maya
Telerik team
answered on 12 Dec 2012, 03:58 PM
Hi Robert,

I am attaching the sample project I used for the test. Could you reproduce the behavior on it ?
Here is the one I get on editing the combo box column. Is it the same on your side ? 

Regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Robert
Top achievements
Rank 1
answered on 12 Dec 2012, 04:20 PM
Them sample project works correctly for me, but it pointed out my problem - the actual issue is that I also have an EditorStyle set on the GridViewComboBoxColumn that sets the OpenDropDownOnFocus property of RadComboBox to True.

<Style TargetType="telerik:RadComboBox" x:Name="OpenOnFocusStyle">
     <Setter Property="OpenDropDownOnFocus" Value="True"/>
</Style>

If I add this to the sample project you sent, I can reproduce the behavior I'm seeing in my project. Is there any way to use OpenDropDownOnFocus together with IsComboBoxEditable and TextInput EditTriggers, or is this expected functionality?
0
Accepted
Maya
Telerik team
answered on 17 Dec 2012, 03:52 PM
Hello Robert,

I have resolved the issue and the fix will be available in our internal build coming next week. I am attaching the modified project so that you can test the behavior with the binaries from the upcoming build.
Let me know in case you encounter any other problems.
I have also updated your telerik points. 

All the best,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Robert
Top achievements
Rank 1
Answers by
Maya
Telerik team
Robert
Top achievements
Rank 1
Share this question
or