We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to create a summary row for for an indexer bound property

Thread ID:

Created:

Updated:

Platform:

Replies:

131505 Jul 13,2017 11:29 AM Jul 15,2017 01:51 PM WPF 3
loading
Tags: SfDataGrid
Jay Timmins
Asked On July 13, 2017 11:29 AM

There is a small mention in the documentation but I'm not sure it's related to this:

If I have a column bound to an indexer property, can I not have a summary for that column?

Using the below definitions doesn't give me a summary:

//indexer bound column
<sf:GridNumericColumn MappingName="ListPriceByFrame[0]"/>
 
//summary column
 <sf:GridSummaryColumn Name="SubTot"
                                              Format="'Subtotal : {Sum:c}'"
                                              MappingName="ListPriceByFrame[0]"
                                              SummaryType="DoubleAggregate" />

Srinivasan Vasu [Syncfusion]
Replied On July 14, 2017 01:28 AM

Hi Jay,
 
Thanks for contacting Syncfusion support. 

We have checked your query and we have prepared a sample as per your provided details. 
If the data operations are not working as expected while using indexer in the Underlying Collection, set GridColumn.UseBindingValue as true.  
 
Please refer the below code example 
 
<Syncfusion:SfDataGrid.Columns> 
                <Syncfusion:GridTextColumn MappingName="C1" 
                                           UseBindingValue="True" 
                                           HeaderText="C1"></Syncfusion:GridTextColumn> 
                <Syncfusion:GridNumericColumn MappingName="C2" 
                                              UseBindingValue="True"></Syncfusion:GridNumericColumn> 
                <Syncfusion:GridNumericColumn MappingName="C3[0]" 
                                              UseBindingValue="True" 
                                              ></Syncfusion:GridNumericColumn> 
            </Syncfusion:SfDataGrid.Columns> 
            <Syncfusion:SfDataGrid.GroupSummaryRows> 
                <Syncfusion:GridSummaryRow ShowSummaryInRow="False"> 
                    <Syncfusion:GridSummaryRow.SummaryColumns> 
                        <Syncfusion:GridSummaryColumn Name="PriceAmount" 
                                              Format="'Amount - {Sum:c}'" 
                                              MappingName="C3[0]" 
                                              SummaryType="DoubleAggregate" /> 
                    </Syncfusion:GridSummaryRow.SummaryColumns> 
                </Syncfusion:GridSummaryRow> 
            </Syncfusion:SfDataGrid.GroupSummaryRows> 
 
  
Please refer the below UG Link: 
Regards,
Srinivasan
 
 
 
 
 
 


Jay Timmins
Replied On July 14, 2017 04:48 AM

Thanks for the thorough and informative reply!


Srinivasan Vasu [Syncfusion]
Replied On July 15, 2017 01:51 PM

Hi Jay, 
  
Thanks for your update. 
  
Please let us know if you need further assistance on this. 
  
Regards,
Srinivasan 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;