Cassie Mod

Cassie Mod

  • NA
  • 488
  • 70.2k

set kendo client template in specifik format

Jul 12 2016 5:40 AM
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)