This question is locked. New answers and comments are not allowed.
I'm getting a strange "Webpage Error" (never seen this dialog box before) when I click on a detail (+ button) on a GridView row the 2nd time (1st time I click on a detail row, no error):
Error: Unhandled Error in Silverlight Application
Code: 2028
Category: ParserError
Message: The name already exists in the tree: SetupDiscountDetails.
File:
Line: 0
Position: 0
It then prompts me if I want to launch VS 2010 or debug with IE ... the bizarre part is that I'm already in VS 2010 and running the IDE/debugger??
It gets even stranger, it appears the Mouse movement across any part of the Grid will keep triggering the error?? Very confused.
Here is the XAML in my page/usercontrol:
Here is the kicker, if I don't use my UserControl DCDiscountDetails and just copy paste the DCDiscountDetails XAML into the DataTemplate section, I don't get the error??
Any suggestions? It looks like I can't specify a "UserControl" inside of a DataTemplate -- but that can't be true, can it?
Rob
Error: Unhandled Error in Silverlight Application
Code: 2028
Category: ParserError
Message: The name already exists in the tree: SetupDiscountDetails.
File:
Line: 0
Position: 0
It then prompts me if I want to launch VS 2010 or debug with IE ... the bizarre part is that I'm already in VS 2010 and running the IDE/debugger??
It gets even stranger, it appears the Mouse movement across any part of the Grid will keep triggering the error?? Very confused.
Here is the XAML in my page/usercontrol:
<DataTemplate x:Key="DiscountDetailDataTemplate"> <local:DCDiscountDetails x:Name="SetupDiscountDetails" /> </DataTemplate> <telerik:RadGridView x:Name="DiscountsGridView" Margin="4" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="7" Grid.RowSpan="2" AreRowDetailsFrozen="True" AutoGenerateColumns="False" CanUserFreezeColumns="False" CanUserReorderColumns="False" CanUserResizeColumns="False" CanUserSortColumns="False" RowIndicatorVisibility="Collapsed" DataContext="{Binding Source={StaticResource DiscountData}}" ItemsSource="{Binding Collection}" RowDetailsTemplate="{StaticResource DiscountDetailDataTemplate}" ShowGroupPanel="False"> <telerik:RadGridView.Columns> <telerik:GridViewToggleRowDetailsColumn /> <telerik:GridViewDataColumn Header="DiscountID" IsVisible="False" DataMemberBinding="{Binding DiscountID}" /> <telerik:GridViewDataColumn Header="Name" MaxWidth="300" MinWidth="300" Width="300" DataMemberBinding="{Binding DiscountName}" /> <telerik:GridViewDataColumn Header="Method" MaxWidth="150" MinWidth="150" Width="150" DataMemberBinding="{Binding DiscountMethod}" /> <telerik:GridViewColumn CellTemplate="{StaticResource DomicoDeleteMiniButton}" FooterTextAlignment="Center" IsResizable="False" IsGroupable="False" IsFilterable="False" MaxWidth="30" MinWidth="30" TextAlignment="Center" Width="30" Background="Transparent" HeaderTextAlignment="Center" IsSortable="False" IsReorderable="False" ShowDistinctFilters="False" /> </telerik:RadGridView.Columns> </telerik:RadGridView>Here is the kicker, if I don't use my UserControl DCDiscountDetails and just copy paste the DCDiscountDetails XAML into the DataTemplate section, I don't get the error??
Any suggestions? It looks like I can't specify a "UserControl" inside of a DataTemplate -- but that can't be true, can it?
Rob