RadPropertyGrid with DataTemplate containing RadComboBox throws Exception

3 posts, 0 answers
  1. John DeVight
    John DeVight avatar
    209 posts
    Member since:
    Jan 2010

    Posted 28 Dec 2012 Link to this post

    I have a UserControl that contains a RadPropertyGrid and one of the property definitions for the RadPropertyGrid has the EditorTemplate set to a DataTemplate that contains a RadComboBox.  When I run the application, I get the following exception:

    Could not load file or assembly 'Telerik.Windows.Controls.Input, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The system cannot find the file specified.

    If I add a RadComboBox to the UserControl, the RadComboBox displays just fine.

    What am I missing?

    Here is the XAML:

    <UserControl x:Class="Company.KendoJavaScriptExtension.MyControl"
                 d:DesignHeight="300" d:DesignWidth="300"
                 Name="MyToolWindow" Loaded="MyToolWindow_Loaded">
        <Grid x:Name="LayoutRoot">
                <DataTemplate x:Key="comboboxTemplate">
                    <telerik:RadComboBox />
            <telerik:RadPropertyGrid x:Name="propertyGrid" Loaded="propertyGrid_Loaded" />

    In the UserControl's Loaded event handler, I have code similar to the following:

    this.propertyGrid.PropertyDefinitions[5].EditorTemplate = LayoutRoot.Resources["comboboxTemplate"] as DataTemplate;
  2. John DeVight
    John DeVight avatar
    209 posts
    Member since:
    Jan 2010

    Posted 31 Dec 2012 Link to this post

    To fix this, I had to register the Telerik assemblies in the GAC.  Is there a way to get this working without having to register the assemblies in the GAC?
  3. DevCraft R3 2016 release webinar banner
  4. Craig
    Craig avatar
    112 posts
    Member since:
    Nov 2011

    Posted 12 Feb 2013 Link to this post

    Hi John,
    I too have had this problem and I also don't want to register the DLLs in the GAC.
    I have another post (http://www.telerik.com/community/forums/wpf/property-grid/initialization-error.aspx) waiting for me to provide a sample project that reproduces the problem but I have not been able to using my code.

    I've tried using your snippet to recreate the problem but I am unable to.

    Would you be able to provide a sample extending this snippet that reproduces the problem?

Back to Top