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
1435
XamDataGrid DataRecordCellArea Issue
posted

I have the following style for DataRecordCellArea and CellValuePresenter. I'm still getting the default style to show as double.

When clicking to the right of the radio button of Line "A", it  becomes Active. Clicking on the radio button of Line "B" makes Line "A" Selected and  Line "B" Active.

Why Line A becomes Selected ?

Please refer to this sample project (Infragistics v17.2)

To replicate this issue:

Run the project, Click to the right of the Radio button (not on it), and click on another Radio button.

         <Style TargetType="{x:Type igDP:CellValuePresenter}">
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding IsActive, RelativeSource={RelativeSource Self}}"
                                     Value="True">
                            <Setter Property="BorderActiveBrush"
                                    Value="Red" />
                            <Setter Property="BackgroundActive"
                                    Value="Green" />
                            <Setter Property="BorderThickness"
                                    Value="0,3,0,3" />
                        </DataTrigger>
                        <DataTrigger Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}"
                                     Value="True">
                            <Setter Property="BorderActiveBrush"
                                    Value="Red" />
                            <Setter Property="BackgroundActive"
                                    Value="Green" />
                            <Setter Property="BorderThickness"
                                    Value="0,3,0,3" />
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
                <Style TargetType="{x:Type igDP:DataRecordCellArea}">
                    <Setter Property="BorderHoverBrush"
                            Value="Salmon" />
                    <Setter Property="BackgroundHover"
                            Value="Salmon" />
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding IsActive, RelativeSource={RelativeSource Self}}"
                                     Value="True">
                            <Setter Property="BorderActiveBrush"
                                    Value="DarkRed" />
                            <Setter Property="BackgroundActive"
                                    Value="White" />
                            <Setter Property="BorderThickness"
                                    Value="3" />
                        </DataTrigger>
                        <DataTrigger Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}"
                                     Value="True">
                            <Setter Property="BorderActiveBrush"
                                    Value="DarkRed" />
                            <Setter Property="BackgroundActive"
                                    Value="White" />
                            <Setter Property="BorderThickness"
                                    Value="3" />
                        </DataTrigger>
                    </Style.Triggers>
                </Style>

It looks like the first record becomes Selected and the Second becomes Active

                <Style TargetType="{x:Type igDP:DataRecordCellArea}"
                       BasedOn="{StaticResource {x:Type igDP:DataRecordCellArea}}">
                    <Setter Property="BorderHoverBrush"
                            Value="Salmon" />
                    <Setter Property="BackgroundHover"
                            Value="Salmon" />
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding IsActive, RelativeSource={RelativeSource Self}}"
                                     Value="True">
                            <Setter Property="BorderActiveBrush"
                                    Value="Yellow" />
                            <Setter Property="BackgroundActive"
                                    Value="Yellow" />
                         
                        </DataTrigger>
                        <DataTrigger Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}"
                                     Value="True">
                                                       
                            <Setter Property="BorderSelectedBrush"
                                    Value="Green" />
                            <Setter Property="BackgroundSelected"
                                    Value="Green" />
                            <Setter Property="BorderThickness"
                                    Value="3" />
                        </DataTrigger>
                    </Style.Triggers>
                </Style>

Parents Reply Children
No Data