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

AutoCompleteBox not rendering in design or runtime

2 Answers 72 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 28 Nov 2018, 03:24 PM

  I've been having version issues with the Telerik DLLs so after lots of research and attempting to fix the issues to no avail I've decided to start a clean project and move my code over piece by piece in hopes of finding the culprit.  Everything is going well so far except my AutoCompleteBox does not show up in design mode or at runtime.  The XAML shows no errors and if you select the markup it highlights where the control should be but it remains invisible.  I had a similar problem with the RadButton but solved that by switching to the native WPF button.

Here is my XAML

01.<telerik:RadAutoCompleteBox Width="300"
02.             ItemsSource="{Binding Transaction.Carriers}"
03.             SelectedItem="{Binding Transaction.SelectedCarrier}"
04.             TextSearchMode="Contains"
05.             AutoCompleteMode="Suggest"
06.             SelectionMode="Single"
07.             TextSearchPath="Name"
08.             FilteringBehavior="{StaticResource CustomAutoCompleteFiler}"
09.             />

 

This worked fine in my previous project until I started getting the weird errors that set off a frustrating chain of events that led me here. As for Telerik references I tried to minimize down to only what I absolutely needed.  At the moment I have Telerik.Windows.Controls and Telerik.Windows.Controls.Input.  This project was made using the Telerik WPF Project Template so I assumed all controls should work fine.  I am also using RadGlyphs and they are rendering just fine.

 

 

2 Answers, 1 is accepted

Sort by
0
Daniel
Top achievements
Rank 1
answered on 28 Nov 2018, 04:33 PM
I figured it out after my GridView was also not rendering.  Someone had a post there with an answer that you need to Theme your app for these controls to figure out.  I think this is poorly documented and the fact that there's no syntax or build errors adds to the confusion.  As far as I knew I was doing everything right but nothing was showing up.  Now I have to figure out which part of the theme will make my grid magically appear.
0
Vladimir Stoyanov
Telerik team
answered on 03 Dec 2018, 12:02 PM
Hello Daniel,

Thank you for the provided code snippet.

May I ask you to check out the Missing Controls in the UI article in our documentation? In order to summarize, you should check whether you have referenced all of the necessary dlls for the controls that you are using. If you are using the NoXaml dlls, you also have to reference the dll of the theme that you have chosen. The last thing to make sure of, when using the NoXaml dlls, is to merge all of the needed resources. For example, if you are using the Office_Black theme, the necessary resources that have to be merged for the RadGridView to be shown, should look like this:
<Application>
       <Application.Resources>
           <ResourceDictionary>
               <ResourceDictionary.MergedDictionaries>
                   <ResourceDictionary Source="/Telerik.Windows.Themes.Office_Black;component/Themes/System.Windows.xaml"/>
                   <ResourceDictionary Source="/Telerik.Windows.Themes.Office_Black;component/Themes/Telerik.Windows.Controls.xaml"/>
                   <ResourceDictionary Source="/Telerik.Windows.Themes.Office_Black;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
                   <ResourceDictionary Source="/Telerik.Windows.Themes.Office_Black;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>         
               </ResourceDictionary.MergedDictionaries>
           </ResourceDictionary>
       </Application.Resources>
   </Application>

May I ask you to check out the referenced article and give the above suggestion a try and let me know if it helps?

Regards,
Vladimir Stoyanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
AutoCompleteBox
Asked by
Daniel
Top achievements
Rank 1
Answers by
Daniel
Top achievements
Rank 1
Vladimir Stoyanov
Telerik team
Share this question
or