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
870
Remove "=" from Summary Row
posted

Is there a way to remove the "=" sign from each cell in the summary row?

Parents
  • 9836
    Verified Answer
    posted

    Hi Brian,

    You can create a style for the SummaryRowCellControl and remove the TextBlock element that is responsible for the "=" symbol :


        <Style TargetType="igPrim:SummaryRowCellControl"  x:Key="CustomSummaryStyle">
            ....
            <Setter Property="SummaryDisplayTemplate">
                <Setter.Value>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                            <TextBlock Text="{Binding SummaryDefinition.SummaryOperand.RowDisplayLabel}" />
                            <!--Remove this element-->
                            <!--<TextBlock Text=" = "/>-->
                            <TextBlock Text="{Binding Converter={StaticResource SDFormatStringConverter}}"/>
                        </StackPanel>
                    </DataTemplate>
                </Setter.Value>
            </Setter>
           ... 
        </Style>

    Then you can easily set this style in the SummaryRowSettings :

    <igGrid:XamWebGrid.SummaryRowSettings>
                    <igGrid:SummaryRowSettings AllowSummaryRow="Bottom"
                                                                   Style="{StaticResource CustomSummaryStyle}"/>
     </igGrid:XamWebGrid.SummaryRowSettings>

    Let me know if you have any questions.

Reply Children
No Data