Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
180
Xamgrid Databar ConditionalFormat will not show databar.
posted

I don't know if the databar conditional rule has a default style or not but it will not show anything within the cell only the value.

<UserControl xmlns:ig="http://schemas.infragistics.com/xaml" x:Class="PickDropMaintenance.DropConfirmationView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400">

<Grid x:Name="LayoutRoot" Background="White">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition />
</Grid.RowDefinitions>
<Grid x:Name="headerGrid" Grid.Row="0" >
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Rectangle Grid.Row="0" Fill="{StaticResource Brush01}" Height="40" Canvas.ZIndex="0" />
<HyperlinkButton Margin="5" Command="{Binding ViewHomeCommand}" Content="Home" FontSize="20" Foreground="White" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Left" Canvas.ZIndex="1" />
<sdk:Label Margin="5" Grid.Row="1" Foreground="{StaticResource Brush01}" Content="Sales Order Drop Confirmation" FontSize="60" FontFamily="Georgia" >
<sdk:Label.Triggers>
<EventTrigger RoutedEvent="Grid.Loaded">
<BeginStoryboard>
<Storyboard >
<DoubleAnimation From="500" To="0" Storyboard.TargetName="mainScrollTranslate3"
Storyboard.TargetProperty="X"
Duration="0:0:0.5">
<DoubleAnimation.EasingFunction>
<PowerEase />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</sdk:Label.Triggers>
<sdk:Label.RenderTransform>
<TranslateTransform x:Name="mainScrollTranslate3" />
</sdk:Label.RenderTransform>
<sdk:Label.RenderTransformOrigin>
<Point X="0.5" Y="0.5" />
</sdk:Label.RenderTransformOrigin>
</sdk:Label>
<sdk:Label Margin="5" Grid.Row="2" Foreground="{StaticResource Brush03}" Content="Sales Order Validation" FontSize="24" FontFamily="Georgia" >
<sdk:Label.Triggers>
<EventTrigger RoutedEvent="Grid.Loaded">
<BeginStoryboard>
<Storyboard >
<DoubleAnimation From="500" To="0" Storyboard.TargetName="mainScrollTranslate4"
Storyboard.TargetProperty="X"
Duration="0:0:1">
<DoubleAnimation.EasingFunction>
<PowerEase />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</sdk:Label.Triggers>
<sdk:Label.RenderTransform>
<TranslateTransform x:Name="mainScrollTranslate4" />
</sdk:Label.RenderTransform>
<sdk:Label.RenderTransformOrigin>
<Point X="0.5" Y="0.5" />
</sdk:Label.RenderTransformOrigin>
</sdk:Label>
</Grid>
<ProgressBar IsIndeterminate="True" Grid.Row="1" Height="10" FlowDirection="RightToLeft" />
<Grid Grid.Row="2">

</Grid>
<ig:XamGrid Grid.Row="3" AutoGenerateColumns="False" ItemsSource="{Binding OrderDropCollection}">
<ig:XamGrid.SelectionSettings>
<ig:SelectionSettings CellClickAction="SelectRow" CellSelection="None" RowSelection="Multiple"/>
</ig:XamGrid.SelectionSettings>
<ig:XamGrid.RowSelectorSettings>
<ig:RowSelectorSettings/>
</ig:XamGrid.RowSelectorSettings>
<ig:XamGrid.FilteringSettings>
<ig:FilteringSettings AllowFiltering="FilterRowTop"/>
</ig:XamGrid.FilteringSettings>
<ig:XamGrid.ConditionalFormattingSettings>
<ig:ConditionalFormattingSettings AllowConditionalFormatting="True" />
</ig:XamGrid.ConditionalFormattingSettings>
<ig:XamGrid.Columns>

<ig:TextColumn Key="SalesOrder" HeaderText="Sales Order" />
<ig:TextColumn Key="SalesOrderConfirmed" HeaderText="Confirmed">
<ig:TextColumn.ConditionalFormatCollection>
<ig:IconConditionalFormatRule ShouldRefreshOnDataChange="True">
<ig:IconConditionalFormatRule.Rules>
<ig:ConditionalFormatIcon Value="1">
<ig:ConditionalFormatIcon.Icon>
<DataTemplate>
<Image Width="16" Height="16" Source="/PickDropMaintenance;component/Images/OK64.png" />
</DataTemplate>
</ig:ConditionalFormatIcon.Icon>
</ig:ConditionalFormatIcon>
<ig:ConditionalFormatIcon Value="0">
<ig:ConditionalFormatIcon.Icon>
<DataTemplate>
<Image Width="16" Height="16" Source="/PickDropMaintenance;component/Images/Delete64.png" />
</DataTemplate>
</ig:ConditionalFormatIcon.Icon>
</ig:ConditionalFormatIcon>
</ig:IconConditionalFormatRule.Rules>
</ig:IconConditionalFormatRule>
</ig:TextColumn.ConditionalFormatCollection>
</ig:TextColumn>
<ig:TextColumn Key="Progress" HeaderText="Validation Progress">
<ig:TextColumn.ConditionalFormatCollection>
<ig:DataBarConditionalFormatRule
DataBarDirection="Bidirectional"
DataBrush="Red" MaximumValue="50" MinimumValue="0"
StyleScope="Cell" NegativeDataBrush="Yellow"
UseNegativeDataBar="True" ShouldRefreshOnDataChange="True" CellValueVisibility="Collapsed">
</ig:DataBarConditionalFormatRule>
</ig:TextColumn.ConditionalFormatCollection>
</ig:TextColumn>
</ig:XamGrid.Columns>
</ig:XamGrid>
</Grid>
</UserControl>

  • 138253
    Offline posted

    Hello,

     

    I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.

  • 138253
    Offline posted

    Hello,

     

    Thank you for your post. I have been looking into it and I created a sample project for you following your scenario and everything seems to work ok on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.

     

    Looking forward for your reply.

    XamGridHierarchicalDTConditionalFormat.zip