Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i want use aggregate in kendo grid but,i'm confused how to use it in my project
my code:
my model
<pre lang="c#"> public class PreOrdersViewModel
    {
        public string NameProduct { get; set; }
        public long? Price { get; set; }
        public int? Count { get; set; }
        public decimal? DisCount { get; set; }
        public long? Total { get; set; }
    }



JavaScript
$.ajax({
              type: "Get",
              dataType: "json",
              url: '/api/PreOrders',
              //data: { number: "test" },
              success: function (data) {
                  $('#grid22').kendoGrid({
                      dataSource: {
                          data: data
                      }, scrollable: false
                  });
              },
              error: function () {
                  alert("error");
              }
          });



JavaScript
<div style="width: 200px;height: 200px;">    <div id="grid3"></div></div>


i want have sum of price,count,discount and total in footer
also i want rename header column
please help me

i see document of telerik but my problem not solve:
kendo grid document
[^]
Posted
Updated 5-May-14 11:04am
v2

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900