RadDataForm exception

5 posts, 1 answers
  1. Jeff
    Jeff avatar
    39 posts
    Member since:
    Jun 2013

    Posted 11 Nov 2013 Link to this post

    I just added a RadDataForm (as a UserControl) to my project for the first time. In the VS designer, everything looks fine. However, when the UserControl is instantiated (via a XAML DataTemplate), I receive the following exception:
    System.Windows.Markup.XamlParseException - "Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception."
     
    with an InnerException of:
     
    "Cannot find resource named 'DataForm_HeaderOuterBorder'. Resource names are case sensitive."


    Any thoughts on what I'm missing would be appreciated.

    Jeff
  2. Vera
    Admin
    Vera avatar
    263 posts

    Posted 11 Nov 2013 Link to this post

    Hi Jeff,

    Could you please share some more details? Are you using Implicit Styles? Do you get the same error in case the UserControl is not placed in a DataTemplate?

    Regards,
    Vera
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Jeff
    Jeff avatar
    39 posts
    Member since:
    Jun 2013

    Posted 11 Nov 2013 Link to this post

    No, I'm not using implicit styles.  Here's the code for the UserControl:

    <UserControl x:Class="TruNest.Client.UserControls.DataFormUC"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                 d:DesignHeight="300"
                 d:DesignWidth="300"
                 mc:Ignorable="d">
        <Grid>
            <telerik:RadDataForm x:Name="dataForm"
                                 HorizontalAlignment="Stretch"
                                 VerticalAlignment="Stretch"
                                 IsEnabled="{Binding IsEnabled}"
                                 ItemsSource="{Binding TableData}" />
        </Grid>
    </UserControl>

    ... and here's the data template code that instantiates the view from the MainWindowView.xaml file:

    <DataTemplate DataType="{x:Type childViewModel:DataFormViewModel}">
        <childView:DataFormUC />
    </DataTemplate>

    I don't yet know how things react if I instantiate the view using some other mechanism besides the above DataTemplate.

    Jeff
  5. Answer
    Vera
    Admin
    Vera avatar
    263 posts

    Posted 12 Nov 2013 Link to this post

    Hello Jeff,

    This issue should be resolved. May I ask you to download our Latest Internal Build and to give it a try? You can find it under Your Account.

    Let us know in case you still experience the problem.




    Regards,
    Vera
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  6. Jeff
    Jeff avatar
    39 posts
    Member since:
    Jun 2013

    Posted 12 Nov 2013 Link to this post

    Yes, the latest internal build has corrected the issue.  Thanks.
Back to Top
UI for WPF is Visual Studio 2017 Ready