Completed
Last Updated: 11 Aug 2017 13:18 by ADMIN
ADMIN
Dilyan Traykov
Created on: 13 Jul 2017 13:13
Category: GridView
Type: Bug Report
0
GridView: GridViewCheckBox visual state is not updated upon filtering
Current workaround for the affected themes - Define the following control template for the GridViewCheckBox:

			<ControlTemplate x:Key="GridViewCheckBoxTemplate" TargetType="telerik:GridViewCheckBox">
				<Grid HorizontalAlignment="Left" VerticalAlignment="Center" Width="13" Height="13">
					<VisualStateManager.VisualStateGroups>
						<VisualStateGroup x:Name="CheckStates">
							<VisualState x:Name="Checked">
								<Storyboard>
									<ObjectAnimationUsingKeyFrames BeginTime="0" Duration="0" Storyboard.TargetName="CheckedPath" Storyboard.TargetProperty="(UIElement.Visibility)">
										<DiscreteObjectKeyFrame KeyTime="0">
											<DiscreteObjectKeyFrame.Value>
												<Visibility>Visible</Visibility>
											</DiscreteObjectKeyFrame.Value>
										</DiscreteObjectKeyFrame>
									</ObjectAnimationUsingKeyFrames>
								</Storyboard>
							</VisualState>
							<VisualState x:Name="Unchecked"/>
							<VisualState x:Name="Indeterminate">
								<Storyboard>
									<ObjectAnimationUsingKeyFrames BeginTime="0" Duration="0" Storyboard.TargetName="IndeterminatePath" Storyboard.TargetProperty="(UIElement.Visibility)">
										<DiscreteObjectKeyFrame KeyTime="0">
											<DiscreteObjectKeyFrame.Value>
												<Visibility>Visible</Visibility>
											</DiscreteObjectKeyFrame.Value>
										</DiscreteObjectKeyFrame>
									</ObjectAnimationUsingKeyFrames>
								</Storyboard>
							</VisualState>
						</VisualStateGroup>
					</VisualStateManager.VisualStateGroups>
					<Grid Background="Transparent">
						<Border
                        BorderBrush="{TemplateBinding BorderBrush}"
                        Background="{TemplateBinding Background}"
                        BorderThickness="{TemplateBinding BorderThickness}"
                        CornerRadius="{telerik:Office2016Resource ResourceKey=CornerRadius}"/>
						<Border x:Name="IndeterminatePath"
                        Width="9"
                        Height="9"
                        VerticalAlignment="Center"
                        HorizontalAlignment="Center"
                        Background="{telerik:Office2016Resource ResourceKey=IconBrush}"
                        Visibility="Collapsed"/>
						<TextBlock x:Name="CheckedPath"
                        HorizontalAlignment="Center"
                        VerticalAlignment="Center"
                        FontSize="13"
                        FontWeight="Normal"
                        FontStyle="Normal"
                        Foreground="{TemplateBinding Foreground}"
                        FontFamily="{StaticResource TelerikWebUI}"
                        telerik:GlyphAdorner.ShowGlyphInDesignTime="True"
                        Opacity="1"
                        Margin="-1 0 0 0"
                        Visibility="Collapsed">
                    <Run Text="{StaticResource GlyphCheck}"/>
						</TextBlock>
					</Grid>
				</Grid>
			</ControlTemplate>
			<Style  TargetType="telerik:GridViewCheckBox" BasedOn="{StaticResource GridViewCheckBoxStyle}">
				<Setter Property="Template" Value="{StaticResource GridViewCheckBoxTemplate}"/>
			</Style>

Fix available in LIB version 2017.2.814.
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments