Xavier John
Xavier John

Reputation: 9437

How do I use the angular date filter with Kendo template?

How do I use the angular date filter with Kendo template?

Here is a sample code that does not work (Kendo Release 2014.2.716). http://dojo.telerik.com/@Xavier/OVIfE

Upvotes: 2

Views: 1517

Answers (1)

Xavier John
Xavier John

Reputation: 9437

Got the answer from Kendo Support. Use dataItem.

{ field: 'birthDate', title: 'Birth Day', type: 'date', template:"{{ dataItem.birthDate | date:'shortDate' }}" }

http://dojo.telerik.com/UYOH

Upvotes: 3

Related Questions