Completed
Last Updated: 29 Jan 2020 15:02 by ADMIN
Release LIB 2020.1.203 (02/03/2020)
Dinko
Created on: 24 Dec 2019 11:50
Category: MultiColumnComboBox
Type: Bug Report
1
MultiColumnComboBox: Validation.ErrorTemplate is not set to the control

The Validation.ErrorTemplate attached property is not set. To workaround this, you can use the following resource.

<ControlTemplate x:Key="ValidationTooltipTemplate">
    <Grid SnapsToDevicePixels="True" VerticalAlignment="Top">
        <Border Background="Transparent" HorizontalAlignment="Right" VerticalAlignment="Top" Width="3" Height="3"/>
        <AdornedElementPlaceholder x:Name="Holder"/>
        <Border BorderBrush="{StaticResource ValidationTooltipOuterBorder}" BorderThickness="1" CornerRadius="{StaticResource ValidationTooltip_CornerRadius}"/>
        <Path Data="M2,1 L6,1 6,5 Z" Fill="{StaticResource ValidationInnerTick}" Width="7" Height="7" HorizontalAlignment="Right" VerticalAlignment="Top"/>
        <Path Data="M0,0 L2,0 7,5 7,7 Z" Fill="{StaticResource ValidationOuterTick}" Width="7" Height="7" HorizontalAlignment="Right" VerticalAlignment="Top"/>
        <ToolTipService.ToolTip>
            <ToolTip x:Name="PART_ToolTip"
                DataContext="{Binding RelativeSource={RelativeSource Mode=Self}, Path=PlacementTarget.DataContext}"
                Template="{StaticResource ErrorTooltipTemplate}"
                Placement="Right"/>
        </ToolTipService.ToolTip>
    </Grid>
</ControlTemplate>

<Style TargetType="telerik:RadMultiColumnComboBox" BasedOn="{StaticResource RadMultiColumnComboBoxStyle}">
    <Setter Property="Validation.ErrorTemplate" Value="{StaticResource ValidationTooltipTemplate}" />
</Style>

0 comments