This is a migrated thread and some comments may be shown as answers.

Grid Footers and Formats

2 Answers 236 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 07 Oct 2012, 12:55 PM
2 questions on this column:
{
                field: "RowTotal",
                title: "Row Total",
                aggregate: ["sum"],
                footerTemplate: "Total: #=sum#",
                format: "{0:c}",
            },



1. Why does column format: "{0:c}", show me Dollars when my regional settings set this to be in Euro?

2. Why does #=sum# (or in fact any aggregate) stop the footer from rendering ?

I get the javascript error that "sum" is not defined.

2 Answers, 1 is accepted

Sort by
0
Iliana Nikolova
Telerik team
answered on 10 Oct 2012, 12:23 PM
Hi Greg,

Straight to your questions: 
  1. I am not sure what exactly causes this problem in your application. By design the currency depends on the current culture. Please make sure that all required scripts are included. For more detailed information about the globalization take a look at the corresponding documentation;
  2. The mostly like reason for this issue is that you have not specified the aggregates in the DataSource (please note that the aggregates are DataSource's configuration). For working example you can check this online demo

If the recommendations do not help to resolve the problem I will need a small but runnable project that illustrates your current implementation. This way I would be able to check what exactly is going on and advice you further.

Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Greg
Top achievements
Rank 1
answered on 10 Oct 2012, 05:18 PM
Hi Iliana

Thanks - i realized this and its fixed now.
Tags
Grid
Asked by
Greg
Top achievements
Rank 1
Answers by
Iliana Nikolova
Telerik team
Greg
Top achievements
Rank 1
Share this question
or