1
Reply

set kendo client template in specifik format

Cassie Mod

Cassie Mod

Jul 12 2016 5:40 AM
273
HI, I want to set the following column bound with a client template to a valuta ( money ) notation. How can I do that ?
And how can I get the sm of the calculated column values? I know I have to aggregate, but for some reason it crashes when I trie to do that so I'm olso doing the aggregate wrong.
 
  .Bound(p => p).ClientTemplate("€ #= NrOfUnits * NrcPerUnit #") // this one need to be represented as money with 2 digits.
 
 
 
  .Aggregates(aggregates =>
{
aggregates.Add(c => c.MrcPerUnit).Sum();
aggregates.Add(c => c.NrcPerUnit).Sum();
aggregates.Add p=> p)sum(); // if I use this line it crashes so how can I fix this part?
                           })

Answers (1)