This is a migrated thread and some comments may be shown as answers.
displaymemberpath, autocompletemode and selection on focus
10 Answers 161 Views
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 2
Mike asked on 22 Oct 2012, 12:54 PM
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

10 Answers, 1 is accepted

Sort by
0
Wenrong
Top achievements
Rank 1
answered on 22 Oct 2012, 11:10 PM
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...
0
Mike
Top achievements
Rank 2
answered on 23 Oct 2012, 09:08 AM
Thanks, haven't seen the BoxesItemTemplate.
Hope we get an answer for the remaining two questions.
0
Ivo
Telerik team
answered on 24 Oct 2012, 02:40 PM
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.

0
Mike
Top achievements
Rank 2
answered on 29 Oct 2012, 01:36 PM
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
0
Ivo
Telerik team
answered on 01 Nov 2012, 01:11 PM
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.

0
Mike
Top achievements
Rank 2
answered on 05 Nov 2012, 10:53 AM
Hi Ivo!

Thanks, looking forward for the Service pack!
0
Mike
Top achievements
Rank 2
answered on 03 Dec 2012, 07:00 AM
Hi Ivo!

Just tried the SP, but the both problems still exist. Any news when they will be fixed?
0
Ivo
Telerik team
answered on 04 Dec 2012, 08:17 AM
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.

0
Mike
Top achievements
Rank 2
answered on 19 Dec 2012, 09:27 AM
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
0
Miroslav Nedyalkov
Telerik team
answered on 27 Dec 2012, 09:35 AM
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.

Asked by
Mike
Top achievements
Rank 2
Answers by
Wenrong
Top achievements
Rank 1
Mike
Top achievements
Rank 2
Ivo
Telerik team
Miroslav Nedyalkov
Telerik team
Share this question
or