displaymemberpath, autocompletemode and selection on focus

11 posts, 0 answers
  1. Mike
    Mike avatar
    39 posts
    Member since:
    May 2011

    Posted 22 Oct 2012 Link to this post

    Hello,

    i'm testing the autocompletebox, and so far i like it. But i have 3 questions:
    1.) Is there a way to set the DisplayMemberPath? The property has no effect.
    2. ) The autocompletemode doesn't work. I'm trying to use the mode "SuggestAndAppend", but it does neither. Also tried the other modes, but the control only filters the entries, but doesn't Highlight a match or autocomplete the value in the TextBox.
    3.) is there am easy way to select all text on Focus?

    Regards
    Michael
  2. Wenrong
    Wenrong avatar
    36 posts
    Member since:
    May 2012

    Posted 22 Oct 2012 Link to this post

    You can use BoxesItemTemplate to control what's displayed.

    I would also like to know the answer for #2, the Append feature doesn't seem to work for me either...
  3. UI for WPF is Visual Studio 2017 Ready
  4. Mike
    Mike avatar
    39 posts
    Member since:
    May 2011

    Posted 23 Oct 2012 Link to this post

    Thanks, haven't seen the BoxesItemTemplate.
    Hope we get an answer for the remaining two questions.
  5. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 24 Oct 2012 Link to this post

    Hi,

    1. The DisplayMemberPath property is used for both the items into the DropDown portion of the control and the selected items. It would be great if you open a support ticket and send us a project demonstrating the issue that you describe.
    2. The append functionality into SuggestAppendMode is applied when an item is highlighted. By default when writing text no item is highlighted. If you highlight an item using the arrow keys you will be able to see the append functionality.
    3. This can be easily achieved by setting a TextBoxStyle to the RadAutoCompleteBox. Have in mind that you will have to base your style on the RadAutoCompleteTextBoxStyle, so you will have to merge the Telerik.Windows.Controls and Telerik.Windows.Control.Input resource files. Here is sample code:
    <Style TargetType="telerik:RadWatermarkTextBox" BasedOn="{StaticResource RadAutoCompleteTextBoxStyle}" x:Key="WatermarkTextBoxStyle">
        <Setter Property="SelectionOnFocus" Value="SelectAll" />
    </Style>
    ....
    <telerik:RadAutoCompleteBox TextBoxStyle="{StaticResource WatermarkTextBoxStyle}" />

    There is also a sample project attached demonstrating how to achieve this.

    Greetings,
    Ivo
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Mike
    Mike avatar
    39 posts
    Member since:
    May 2011

    Posted 29 Oct 2012 Link to this post

    Hi!

    Thank's for your Response!
    1) is solved with the BoxesItemTemplate
    2) Ok, it would be nice if the control would suggest the first entry, but that's not mandatory
    3) Your Sample with the WatermarkTextBoxStyle works fine except one thing. When a text is entered and you use the tab key to cycle trough the controls, you loose the text in the autocompletebox. but it seems like the selection in the Background is still active (selecteditem set). To reproduce the problem, just add an button to the stackpanel in your sample.
    And i found another Problem, the control doesn't respect the TabIndex Property.

    Regards
    Michael
  7. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 01 Nov 2012 Link to this post

    Hi Michael,

    Thank you for the great feedback.

    I can confirm that both the deleted text on selection and the TabIndex are RadAutoCompleteBox issues. We will do our best to fix them for the upcoming service pack.

    I have also updated your Telerik points.

    All the best,
    Ivo
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  8. Mike
    Mike avatar
    39 posts
    Member since:
    May 2011

    Posted 05 Nov 2012 Link to this post

    Hi Ivo!

    Thanks, looking forward for the Service pack!
  9. Mike
    Mike avatar
    39 posts
    Member since:
    May 2011

    Posted 03 Dec 2012 Link to this post

    Hi Ivo!

    Just tried the SP, but the both problems still exist. Any news when they will be fixed?
  10. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 04 Dec 2012 Link to this post

    Hi Michael,

    These two didn't make it through for the service pack. However we will do our best to include them for the next official release.

    Greetings,
    Ivo
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  11. Mike
    Mike avatar
    39 posts
    Member since:
    May 2011

    Posted 19 Dec 2012 Link to this post

    Hi,

    is there any chance, that you implement this in an earlier internal build? This feature is very urgent for our users.

    kind regards
    Michael
  12. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 27 Dec 2012 Link to this post

    Hi Michael,

    We will consider this and put the respective priorities to this tasks. We will write you back as soon as we progress or more information on this matter.

    Kind regards,
    Miroslav Nedyalkov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
UI for WPF is Visual Studio 2017 Ready