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

No Items displayed in the dropdown with new custom style

4 Answers 113 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Saravanan
Top achievements
Rank 1
Saravanan asked on 29 Sep 2013, 07:56 AM
I'v setup applied a new custom style to a RadAutoCompleteBox in order to change its visual design. I would also like to customize its RadAutoCompleteBoxItems (e.g. change the Background and foreground , Border etc). How can this be achieved?  But if I'm searching for some items, no entries are shown in the drop down.

Please download the source file from the following url : www.sharangrafix.in/openautofocus/OpenOnFocusAutoComplete.zip

Thanks,
Sharan

4 Answers, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 02 Oct 2013, 11:58 AM
Hello Saravanan,

Looks like some part from your custom style is missing, please make sure everything from the default style is present. Besides, you can customize the items in the DropDown through the DropDownItemTemplate property of the AutoCompleteBox. Please check the Customizing the DropDownItemTemplate article from our online help documentation for more details.

Hope this will help you.

Regards,
Kalin
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Saravanan
Top achievements
Rank 1
answered on 03 Oct 2013, 06:39 AM
Hi,

Thanks for the reply, I customized my DropDownItenTemplate based on your link, still no use, If you can download my source file and  you will know what I am trying to say, no problem with the DropDownItenTemplate, Problem when you search something in RadAutoCompleteBox  it is not bringing up the DropDownItenTemplate.  when you remove the style property from the RadAutoCompleteBox everything is fine.

Please see my attachments below.

Please download the source file from the following url :
www.sharangrafix.in/openautofocus/OpenOnFocusAutoComplete.zip


regards,
Saravanan
0
Kalin
Telerik team
answered on 04 Oct 2013, 11:09 AM
Hello Saravanan,

The dropdown is missing because the element that holds the items doesn't have its ItemsSource set. This is the ListBox named PART_ListBox in the RadAutoCompleteBox ControlTemplate you just need to set the ItemsSource the following way and it will start working as expected:

ItemsSource="{TemplateBinding FilteredItems}"

Hope this will help you.

Regards,
Kalin
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Saravanan
Top achievements
Rank 1
answered on 06 Oct 2013, 08:03 AM
Hi,

Thanks a lot, it works.


regards,
saravanan
Tags
AutoCompleteBox
Asked by
Saravanan
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Saravanan
Top achievements
Rank 1
Share this question
or