Skip to content Skip to sidebar Skip to footer

How To Set The Number Format For Hyperlinks In Kendo Grid Column

I want to apply the number format for a column in kendo grid. That column definition is: { field: 'WeekEndGrossUSD', title: dashBoardColumNames[0].WeekendGrossUSD, head

Solution 1:

Column format works only if you are NOT using a column template. Otherwise, the formatting should be done manually, e.g. by using kendo.toString() inside the template code.

template: '<a>#= kendo.toString(CumulativeGrossUSD, "n0") #</a>'

On a side note, do not use static IDs in column templates ("cumeTemplate"), because they will duplicate and lead to invalid HTML markup. You will also not be able to attach a click handler properly to all hyperlinks. Use custom CSS classes instead.

Post a Comment for "How To Set The Number Format For Hyperlinks In Kendo Grid Column"