Popup background

4 posts, 1 answers
  1. Grigory Perepechko
    Grigory Perepechko avatar
    27 posts
    Member since:
    Aug 2009

    Posted 08 Nov 2012 Link to this post

    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).

            
  2. Answer
    Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 09 Nov 2012 Link to this post

    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.
  3. DevCraft banner
  4. Christpher
    Christpher avatar
    1 posts
    Member since:
    Nov 2012

    Posted 30 Nov 2012 Link to this post

    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.
  5. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 03 Dec 2012 Link to this post

    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.
Back to Top