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
1770
SummaryDescriptionMaks and Summary Definitions
posted

Hello. this is what I have:

<igWPF:FieldLayout SummaryDescriptionMask="Total">

<igWPF:UnboundField Label="Station Operating Hours Summary" Row="0" Column="0">
<igWPF:UnboundField.Settings>
<igWPF:FieldSettings CellContentAlignment="LabelOnly" LabelTextWrapping="Wrap" />
</igWPF:UnboundField.Settings>
</igWPF:UnboundField>
<igWPF:UnboundField Label="Duration (vg hours)" Row="0" Column="1" >
<igWPF:UnboundField.Settings>
<igWPF:FieldSettings CellContentAlignment="LabelOnly" LabelTextWrapping="Wrap"/>
</igWPF:UnboundField.Settings>
</igWPF:UnboundField>
<igWPF:Field Name="Station" Label="" Row="1" Column="0"/>
<igWPF:Field Name="Report Period" Label="ReportPeriod" Row="1" Column="1"/>
<igWPF:Field Name="Forced Outage" Label="Forced Outage" Row="1" Column="2"/>
<igWPF:Field Name="Scheduled Outage" Label="Scheduled Outage" Row="1" Column="3"/>
<igWPF:Field Name="Service" Label="Service" Row="1" Column="4"/>
<igWPF:Field Name="Standby" Label="Standby" Row="1" Column="5"/>
<igWPF:Field Name="Total Hours" Label="Total Hours" Row="1" Column="6"/>
<igWPF:Field Name="Total" Label="Total" Row="1" Column="7" />

<igWPF:FieldLayout.SummaryDefinitions>
<igWPF:SummaryDefinition SourceFieldName="Forced Outage" Calculator="Sum" StringFormat="{}{0}" />
<igWPF:SummaryDefinition SourceFieldName="Scheduled Outage" Calculator="Sum" StringFormat="{}{0}" />
<igWPF:SummaryDefinition SourceFieldName="Service" Calculator="Sum" StringFormat="{}{0}" />
<igWPF:SummaryDefinition SourceFieldName="Standby" Calculator="Sum" StringFormat="{}{0}" />
<igWPF:SummaryDefinition SourceFieldName="Total Hours" Calculator="Sum" StringFormat="{}{0}" />
</igWPF:FieldLayout.SummaryDefinitions>

</igWPF:FieldLayout>

</igWPF:XamDataGrid.FieldLayouts>

what happens is that the summary description mask "Total" gets positions at column 0 but I want it to be positioned at column 1. Also it creates a new row and then the summary definitions are in another row below that row. What I would like is the summary definitions to be positions right below the last value for its respective column in the same row as the summary description mask. 

Can this be done?

Thanks

  • 16495
    Verified Answer
    Offline posted

    Hello KrisVice,

     

    Thank you for your post.

     

    I have been looking into your requirements and the code snippet you have provided.

     

    About your requirement – “summary definitions to be positions right below the last value” what I can suggest is to create style for SummaryRecordContentArea and by using event setter you can handle its Loaded event. In the event handler of Loaded event you can get from the Visual tree the StackPanel containing the summary values and header by using our Utilities class and set its Orientation property to Horizontal, also in order to align the SummaryResultPresenters you can create style for  SummaryResultPresenter and set its Margin property.  I created a short project in order to show you how you can implement this functionality.

     

    About your requirement  for description mask to be positioned at column 1 instead of column  0 :

     

    After working on the functionality that you are trying to achieve and doing some research, the ability to set the SummaryDescriptionMask has been determined to be a new product idea. You can suggest new Product Ideas for future versions (or vote for existing ones) at http://ideas.infragistics.com.

     

    Steps to create your idea:

                   

    1. Log into the Infragistics Product Ideas site at http://ideas.infragistics.com (creating a new login if needed).

    2. Navigate to the product / platform channel of your choice (e.g. WPF, Windows Forms, ASP.NET, HTML5 / Ignite UI, iOS / NucliOS, etc.)

    3. Add your product idea and be sure to be specific and provide as much detail as possible.

    • Explain the context in which a feature would be used, why it is needed, why it can’t be accomplished today, and who would benefit from it. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it. Be convincing!

    • Include a link to this thread in your idea so product management will be able to look back at this case. 

     

    The benefits of submitting the product idea yourself include:

    • Direct communication with our product management team regarding your product idea.

    • Notifications whenever new information regarding your idea becomes available.

       

      Additional benefits of the Product Idea system include:

       

    • Ability to vote on your favorite product ideas to let us know which ones are the most important to you.  You will have ten votes for this and can change which ideas you are voting for at any time.

    • Allow you to shape the future of our products by requesting new controls and products altogether.

    • You and other developers can discuss existing product ideas with members of our Product Management team.

       

      The product ideas site allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.

       

      Thank you for contacting Infragistics.

    SummaryDescription.zip