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

RadDataForm exception

4 Answers 83 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 11 Nov 2013, 04:03 PM
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

4 Answers, 1 is accepted

Sort by
0
Vera
Telerik team
answered on 11 Nov 2013, 04:31 PM
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 >>
0
Jeff
Top achievements
Rank 1
answered on 11 Nov 2013, 04:39 PM
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
0
Accepted
Vera
Telerik team
answered on 12 Nov 2013, 10:24 AM
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 >>
0
Jeff
Top achievements
Rank 1
answered on 12 Nov 2013, 03:17 PM
Yes, the latest internal build has corrected the issue.  Thanks.
Tags
DataForm
Asked by
Jeff
Top achievements
Rank 1
Answers by
Vera
Telerik team
Jeff
Top achievements
Rank 1
Share this question
or