RadGridView problem with 2011 Q2 hotfix

2 posts, 0 answers
  1. Lucie
    Lucie avatar
    28 posts
    Member since:
    Jun 2011

    Posted 09 Jan 2012 Link to this post

    after using 01648RadControls_for_Silverlight4_2011_2_1107_DEV_hotfix.zip we got error
    Line: 51
    Error: Unhandled Error in Silverlight 2 Application
    Code: 4004   
    Category: ParserError      
    Message: Set property 'System.Windows.FrameworkElement.Style' threw an exception.    
    File:     
    Line: 95    
    Position: 25    

    We cannot find file where is problem. Have you somewhere in repository description of changes for this hotfix?
    What can be reason for ParserError in Set property?
    The same error happen for 2011 Q3.

    we use this template:

        <ControlTemplate x:Key="RadGridViewTemplate" TargetType="controls:RadGridView">
                <Border Name="PART_MasterGridContainer"
         BorderBrush="{TemplateBinding BorderBrush}"
         BorderThickness="{TemplateBinding BorderThickness}"
         Padding="{TemplateBinding Padding}">

                    <Grid Background="WhiteSmoke" x:Name="HierrarchyBackground">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition x:Name="PART_AttachedBehaviorRow" Height="Auto" />
                        <RowDefinition />
                        <RowDefinition x:Name="ScrollBarRow" MinHeight="0" Height="0"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                            <ColumnDefinition />
                            <ColumnDefinition x:Name="ScrollBarColumn" MinWidth="0" Width="0"/>
                        </Grid.ColumnDefinitions>

                        <grid:GridViewGroupPanel x:Name="PART_GroupPanel" Grid.Row="0" Grid.ColumnSpan="2" telerik:StyleManager.Theme="{StaticResource Theme}"
                Background="{TemplateBinding GroupPanelBackground}"
                Foreground="{TemplateBinding GroupPanelForeground}"
                BorderBrush="{StaticResource GridView_GroupPanelOuterBorder}" />

                        <grid:GridViewScrollViewer x:Name="PART_ItemsScrollViewer" Background="Transparent"
                                           CanContentScroll="True" telerik:StyleManager.Theme="{StaticResource Theme}"
                Grid.Row="2" Grid.RowSpan="2" Grid.ColumnSpan="2">
                            <grid:GridViewScrollViewer.HeaderRow>
                                <grid:GridViewHeaderRow x:Name="PART_HeaderRow"
                                        telerik:StyleManager.Theme="{StaticResource Theme}"
                                        IndentLevel="{TemplateBinding GroupCount}" />
                            </grid:GridViewScrollViewer.HeaderRow>
                            <grid:GridViewScrollViewer.NewRow>
                                <grid:GridViewNewRow Name="PART_AddNewRow"
                                         telerik:StyleManager.Theme="{StaticResource Theme}"
                                         IndentLevel="{TemplateBinding GroupCount}"
                                         Visibility="Collapsed" />
                            </grid:GridViewScrollViewer.NewRow>
                            <grid:GridViewScrollViewer.FooterRow>
                                <grid:GridViewFooterRow x:Name="PART_FooterRow"
                                        telerik:StyleManager.Theme="{StaticResource Theme}"
                                        IndentLevel="{TemplateBinding GroupCount}" />
                            </grid:GridViewScrollViewer.FooterRow>
                            <grid:GridViewVirtualizingPanel x:Name="PART_GridViewVirtualizingPanel" />
                        </grid:GridViewScrollViewer>

                        <grid:ScrollPositionIndicator x:Name="PART_ScrollPositionIndicator"
                  telerik:StyleManager.Theme="{StaticResource Theme}"
                  Margin="0,0,28,0"
                  IsHitTestVisible="False" HorizontalAlignment="Right"
                  Grid.Row="2" Grid.ColumnSpan="2"
                  Visibility="{Binding IsScrolling, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}"
                  ContentTemplate="{TemplateBinding ScrollPositionIndicatorTemplate}" />

                        <Border x:Name="PART_FrozenColumnsPreview" Grid.Row="1" Visibility="Collapsed" HorizontalAlignment="Left" VerticalAlignment="Stretch" Grid.RowSpan="4" Background="#33000000" Width="6"/>

                        <grid:GridViewLoadingIndicator x:Name="PART_GridViewLoadingIndicator" Visibility="Collapsed" telerik:StyleManager.Theme="{StaticResource Theme}"
                   Grid.RowSpan="4" Grid.ColumnSpan="2" />

     

                    </Grid>

                    <vsm:VisualStateManager.VisualStateGroups>
                        <vsm:VisualStateGroup x:Name="GridViewActivity">
                            <vsm:VisualState x:Name="Idle">
                                <Storyboard>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_GridViewLoadingIndicator"
                                                               Storyboard.TargetProperty="Visibility">
                                        <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Collapsed" />
                                    </ObjectAnimationUsingKeyFrames>
                                </Storyboard>
                            </vsm:VisualState>
                            <vsm:VisualState x:Name="Busy">
                                <Storyboard>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_GridViewLoadingIndicator"
                                                               Storyboard.TargetProperty="Visibility">
                                        <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Visible" />
                                    </ObjectAnimationUsingKeyFrames>
                                </Storyboard>
                            </vsm:VisualState>
                        </vsm:VisualStateGroup>

                        <vsm:VisualStateGroup x:Name="ColumnHeadersVisibility">
                            <vsm:VisualState x:Name="ColumnHeadersVisible">
                                <Storyboard>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_HeaderRow" Storyboard.TargetProperty="Visibility">
                                        <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Visible" />
                                    </ObjectAnimationUsingKeyFrames>
                                </Storyboard>
                            </vsm:VisualState>
                            <vsm:VisualState x:Name="ColumnHeadersCollapsed">
                                <Storyboard>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_HeaderRow" Storyboard.TargetProperty="Visibility">
                                        <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Collapsed" />
                                    </ObjectAnimationUsingKeyFrames>
                                </Storyboard>
                            </vsm:VisualState>
                        </vsm:VisualStateGroup>

                        <vsm:VisualStateGroup x:Name="ColumnFootersVisibility">
                            <vsm:VisualState x:Name="ColumnFootersVisible">
                                <Storyboard>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_FooterRow" Storyboard.TargetProperty="Visibility">
                                        <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Visible" />
                                    </ObjectAnimationUsingKeyFrames>
                                </Storyboard>
                            </vsm:VisualState>
                            <vsm:VisualState x:Name="ColumnFootersCollapsed">
                                <Storyboard>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_FooterRow" Storyboard.TargetProperty="Visibility">
                                        <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Collapsed" />
                                    </ObjectAnimationUsingKeyFrames>
                                </Storyboard>
                            </vsm:VisualState>
                        </vsm:VisualStateGroup>

                        <vsm:VisualStateGroup x:Name="GroupPanelVisibility">
                            <vsm:VisualState x:Name="GroupPanelVisible">
                                <Storyboard>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_GroupPanel"
                                                               Storyboard.TargetProperty="Visibility">
                                        <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Visible" />
                                    </ObjectAnimationUsingKeyFrames>
                                </Storyboard>
                            </vsm:VisualState>
                            <vsm:VisualState x:Name="GroupPanelCollapsed">
                                <Storyboard>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_GroupPanel"
                                                               Storyboard.TargetProperty="Visibility">
                                        <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Collapsed" />
                                    </ObjectAnimationUsingKeyFrames>
                                </Storyboard>
                            </vsm:VisualState>
                        </vsm:VisualStateGroup>

                        <vsm:VisualStateGroup x:Name="InsertRowVisibility">
                            <vsm:VisualState x:Name="InsertRowVisible">
                                <Storyboard>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_AddNewRow" Storyboard.TargetProperty="Visibility">
                                        <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Visible" />
                                    </ObjectAnimationUsingKeyFrames>
                                </Storyboard>
                            </vsm:VisualState>
                            <vsm:VisualState x:Name="InsertRowCollapsed">
                                <Storyboard>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_AddNewRow" Storyboard.TargetProperty="Visibility">
                                        <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Collapsed" />
                                    </ObjectAnimationUsingKeyFrames>
                                </Storyboard>
                            </vsm:VisualState>
                        </vsm:VisualStateGroup>
                    </vsm:VisualStateManager.VisualStateGroups>

                </Border>

            </ControlTemplate>

    Thank you for answer

  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 09 Jan 2012 Link to this post

    Hi,

     We cannot find what is going in your scenario from provided information. Please open support ticket and send us runnable project where we can reproduce the exception. 

    All the best,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top