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

Customize BoxItem in single selection mode

1 Answer 78 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Viswa
Top achievements
Rank 1
Viswa asked on 07 Aug 2017, 05:07 AM

Hi,

I want to customize the BoxItem in single selection mode. As per documentation, there is no other way to customize the boxItem in Single selection mode. Because of this constraint, It is blocking our development. Any one can help me in this situation.

Regards,

Viswa Teja.

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 09 Aug 2017, 03:23 PM
Hello Viswa,

Indeed, as suggested in the Customizing the BoxesItemTemplate article, the BoxesItemTemplate is applied only when the SelectionMode property is set to Multiple as BoxItems are not displayed in this case.

What you can do in this scenario is to set your custom style as the control's TextBoxStyle property and use a converter inside it to handle any conditional styling. You can have a look at the Single SelectionMode with clear button demo from the SDK Samples Browser which demonstrates how to setup the style.

Do let me know if you need any further assistance on the matter.

Regards,
Dilyan Traykov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
Tags
AutoCompleteBox
Asked by
Viswa
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or