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

[Solved] Specify cell numeric format per row

1 Answer 270 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Wim
Top achievements
Rank 1
Wim asked on 12 Jan 2015, 02:52 PM
I have a Kendo Grid with a list of products and their respective amounts. Each product may have a different decimal precision, but I don't know how to reflect this in the Grid. As far as I can figure out, it is only possible to set the format for the entire column.Currently, with format as {0:n2}, the Grid will display as:

PRODUCT     AMOUNT PRECISION
Product A    10,00         0
Product B    10,00         2
Product C    10,00         3
Product D    10,00         1

While the desired result would look like:

PRODUCT     AMOUNT PRECISION
Product A       10         0
Product B    10,00         2
Product C   10,000         3
Product D     10,0         1

Is it even possible to specify a different format for each row in Kendo Grid?

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 14 Jan 2015, 01:03 PM
Hello Wim,

To achieve this you may use a column template. Please check the following example: http://dojo.telerik.com/@valchev/OjIqE

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Wim
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or