Ticket T266992
Visible to All Users

dxDataGrid - Summary should mimic the column's format by default

created 10 years ago

Let's say that I have a column defined as

JavaScript
{ dataField: 'SaleAmount', alignment: 'right', format: 'currency', precision: 2 }

and a summary item defined as

JavaScript
{ column: 'SaleAmount', summaryType: 'sum' }

My summary is not going to be formatted as a currency.

Instead, I have to repeat things we already know:

JavaScript
{ column: 'SaleAmount', summaryType: 'sum', valueFormat: 'currency', prevision: 2 }

Of course, having a summary with a different format than the column is a perfectly valid scenario but as a developer I would expect the default summary to mimic the column's formatting.

What do you think about that?

Answers approved by DevExpress Support

created 10 years ago

Hello Dominic,

Thank you for sharing your idea. We will examine it and take it into account in future versions.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.