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

Popup background

3 Answers 85 Views
AutocompleteBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Grigory Perepechko
Top achievements
Rank 1
Grigory Perepechko asked on 08 Nov 2012, 12:27 PM
Hi,
Is there possibility to mimic marketplace search popup ?

It is always white. (has theme-agnostic view)

This seems very important to me, because black popup looks really scarry :)

BTW, In method  
Telerik.Windows.Controls.RadAutoCompleteBox.HideSuggestionsPopup() there is a line:
 this.MaxPopupHeight = PopupMaxHeight;

I have custom MaxPopupHeight of 300px. And every time it is reset to 184. A bit annoying behavior (i would say bug).

        

3 Answers, 1 is accepted

Sort by
0
Accepted
Kiril Stanoev
Telerik team
answered on 09 Nov 2012, 11:20 AM
Hi Grigory,

Thank you for reporting those issue.

We've introduced a new property (PopupStyle) to the AutoCompleteBox which will allow you to modify the style of the suggestions popup. To use the PopupStyle property, first you will have to add a reference to the Telerik.Windows.Controls.AutoCompleteTextBox namespace.

xmlns:autoComplete="clr-namespace:Telerik.Windows.Controls.AutoCompleteTextBox;assembly=Telerik.Windows.Controls.Input"

Then, you can re-define the style of the popup:

<telerikInput:RadAutoCompleteBox x:Name="radAutoCompleteBox">
    <telerikInput:RadAutoCompleteBox.PopupStyle>
        <Style TargetType="autoComplete:AutoCompleteItemsControl">
            <Setter Property="Background" Value="LightCoral" />
        </Style>
    </telerikInput:RadAutoCompleteBox.PopupStyle>
</telerikInput:RadAutoCompleteBox>

This way you will be able to control the background of the popup in both themes.

As for the other issue, we're currently working on it and we will do our best to provide both fixes with our next week's internal build.

Let me know if you have further questions or comments on the topic. I'd be glad to assist you.

Kind regards,
Kiril Stanoev
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Christpher
Top achievements
Rank 1
answered on 30 Nov 2012, 08:40 PM
Trying the above, however getting an error that the member "PopupStyle" is not recognized or is not accessible.  I have added the appropriate namespaces and references to the project.  Also have downloaded the most current builds.
0
Kiril Stanoev
Telerik team
answered on 03 Dec 2012, 09:55 AM
Hello Christpher,

The PopupStyle property is available with our latest internal build, which you can download from you account. Give it a try and let me know how it goes. 

Regards,
Kiril Stanoev
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
AutocompleteBox
Asked by
Grigory Perepechko
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Christpher
Top achievements
Rank 1
Share this question
or