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

Disable AutoCompleteBox Popup opening/closing animation.

4 Answers 107 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.
janiss
Top achievements
Rank 1
janiss asked on 08 Feb 2013, 11:49 AM
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?..

4 Answers, 1 is accepted

Sort by
0
Accepted
Deyan
Telerik team
answered on 13 Feb 2013, 07:40 AM
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.
0
janiss
Top achievements
Rank 1
answered on 13 Feb 2013, 08:18 AM
Ok, thanks for the solution!
0
janiss
Top achievements
Rank 1
answered on 21 Mar 2013, 09:59 AM
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.?
0
Deyan
Telerik team
answered on 22 Mar 2013, 02:08 PM
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.
Tags
AutocompleteBox
Asked by
janiss
Top achievements
Rank 1
Answers by
Deyan
Telerik team
janiss
Top achievements
Rank 1
Share this question
or