Click here to Skip to main content
14,698,679 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; }
    }



$.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");
              }
          });



<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 12:04pm
v2

1 solution

   

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