Disable AutoCompleteBox Popup opening/closing animation.

5 posts, 1 answers
  1. janiss
    janiss avatar
    7 posts
    Member since:
    Nov 2012

    Posted 08 Feb 2013 Link to this post

    I am unable to access popup animation property directly or through Style or template editing, because it is not possible to edit/copy styles and templates in Blend for Visual Studio for any RadControls component, wich is really frustrating.. Any solutions?..
  2. Answer
    Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 13 Feb 2013 Link to this post

    Hi Janis,

    Thanks for writing and for your question.

    I just want to make a note that the issue with not being able to reuse the templates and styles of the controls in Visual Studio and Blend will soon be fixed.

    Otherwise, since there is not a direct way of accessing the RadWindow which is used to show the suggestions of the AutoCompleteBox, you should use a small trickery to find it:

    AutoCompleteBoxWindow window = ElementTreeHelper.FindVisualDescendant<AutoCompleteBoxWindow>(this.radAutoCompleteBox);
     
    window.OpenAnimation = null;

    When you find it, you simply need to set the OpenAnimation to null to stop the windows from animating.

    You can do this in the Loaded event of your page where the AutoCompleteBox resides.

    I hope this helps.

    All the best,
    Deyan
    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. janiss
    janiss avatar
    7 posts
    Member since:
    Nov 2012

    Posted 13 Feb 2013 Link to this post

    Ok, thanks for the solution!
  5. janiss
    janiss avatar
    7 posts
    Member since:
    Nov 2012

    Posted 21 Mar 2013 Link to this post

    I have one more question about AutoCompleteBoxWindow. What is the possible way to change its content or template background color, since there is not a direct way of accessing the RadWindow.?
  6. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 22 Mar 2013 Link to this post

    Hello Janis,

    There is a property PopupStyle property exposed by RadAutoCompleteBox which you can use for the purpose. It targets the AutoCompleteItemsControl type which resides in the Telerik.Windows.Controls.AutoCompleteBox namespace.

    I hope this helps.

    All the best,
    Deyan
    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
DevCraft banner