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
560
Different Styles for SummaryResultPresenter ?
posted

Hello, is it possible to use different Styles for the SummaryResultPresenter in one Grid?

I would like to use 2 Styles, one has some labels with static content, and the other one has TextBox Controls which are under specific columns.

The first one i have created works, but how to change dynamically under specific columns the Style of the Summary, is it possible?

 

My first style with the static content:

<Style x:Name="FooterDescription" TargetType="{x:Type igDP:SummaryResultsPresenter}">
<Style.Resources>
    <DataTemplate DataType="{x:Type igDP:SummaryResult}">
        <igDP:SummaryResultPresenter SummaryResult="{Binding}"/>
    </DataTemplate>
</Style.Resources>
<Setter Property="Template">
<Setter.Value>
    <ControlTemplate TargetType="{x:Type igDP:SummaryResultsPresenter}">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition></ColumnDefinition>

        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>

            <RowDefinition ></RowDefinition>
            <RowDefinition ></RowDefinition>
            <RowDefinition ></RowDefinition>                                 

        </Grid.RowDefinitions>

        <Label Content="Description1" Grid.Column="0" Grid.Row="0"></Label>
        <Label Content="Description2" Grid.Column="0" Grid.Row="1"></Label>
        <Label Content="Description3" Grid.Column="0" Grid.Row="2"></Label>

    </Grid>

    </ControlTemplate>
</Setter.Value>
</Setter>
</Style>

 

 

This style must be set only under one column:

 

 

<igDP:FieldLayout.SummaryDefinitions >
                 
    <igDP:SummaryDefinition Key="MA" SourceFieldName="MA" Calculator="Count" />

</igDP:FieldLayout.SummaryDefinitions>



So for the other important columns i need another
SummaryResultsPresenter or someting matchable,
has listed some TextBox Controls, these must be filled with data.

   

I would like create another Style and then assign the specific columns
with the Style, something like this.

Example


 

<igDP:FieldLayout.SummaryDefinitions >

    <igDP:SummaryDefinition Style="{StaticResource FooterDescription}" Key="DescriptionCol" SourceFieldName="DescriptionCol" Calculator="Count" />

    <igDP:SummaryDefinition Style="{StaticResource DataSum}" Key="Col1" SourceFieldName="Col1" Calculator="Count" />

    <igDP:SummaryDefinition Style="{StaticResource DataSum}" Key="Col2" SourceFieldName="Col2" Calculator="Count" />

</igDP:FieldLayout.SummaryDefinitions>



I need different Summary Layouts, how to set this`??


Parents
No Data
Reply
  • 27093
    posted

    Hello Patrick,

    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.

    If the above suggestion helped you solve your issue please verify the thread as answered so other users may take better advantage of it.

    Sincerely,

    Petar Monov

    Developer Support Engineer

    Infragistics Bulgaria

    www.infragistics.com/support

     

Children
No Data