AutoCompleteBox not rendering in design or runtime

3 posts, 0 answers
  1. Daniel
    Daniel avatar
    28 posts
    Member since:
    Jul 2018

    Posted 28 Nov 2018 Link to this post

      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. Daniel
    Daniel avatar
    28 posts
    Member since:
    Jul 2018

    Posted 28 Nov 2018 Link to this post

    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.
  3. Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    503 posts

    Posted 03 Dec 2018 Link to this post

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