GridViewComboBoxColumn TextInput EditTrigger

6 posts, 1 answers
  1. Robert
    Robert avatar
    23 posts
    Member since:
    Oct 2011

    Posted 11 Dec 2012 Link to this post

    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?
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 12 Dec 2012 Link to this post

    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.

  3. Robert
    Robert avatar
    23 posts
    Member since:
    Oct 2011

    Posted 12 Dec 2012 Link to this post

    I just tried out the latest internal build, I get the same behavior.
  4. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 12 Dec 2012 Link to this post

    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.

  5. Robert
    Robert avatar
    23 posts
    Member since:
    Oct 2011

    Posted 12 Dec 2012 Link to this post

    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?
  6. Answer
    Maya
    Admin
    Maya avatar
    4062 posts

    Posted 17 Dec 2012 Link to this post

    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.

Back to Top