title: kendogrid aggregate on dynamic columns
body: <p>I'm using <code>ASP.NET webmethods</code> and <code>KendoGrid</code> for binding the data to <code>Grid</code>. The columns that are generated is dynamic. I need to apply <code>aggregate</code> on each column.  Please let me know how I can achieve this.</p>
  
  <p>I'll not be aware of the column names that is coming from WebMethod. So not sure of how to write the aggregate.  I think once the grid is loaded we can access it and then define the aggregate. Please guide. Googled on this but didn't get any help. </p>
  
  <p><code>aggregate: [{field: "unknowncolumnnames", aggregate: "sum" }]</code></p>
  
  <pre><code> $.ajax({
      url: "Details.aspx/DetailsWebMethod",
      dataType: "json",
      type: "POST",
      contentType: "application/json; charset=utf-8",
      success: function (data) {
           $("#DetailsGrid").kendoGrid({
  
                  dataSource: {
                      type: "json",
                      data: data.Table,
                      pageSize: 10
                  },
                  sortable: {
                      mode: "single",
                      allowUnsort: false
                  },
                  pageable: {
                      input: true,
                      pageSizes: true,
                      numeric: false
                  },
  
                  selectable: "row",
                  filterable: true,
                  columnMenu: true,
                  navigatable: true,
                  reorderable: true,
                  resizable: true,
                  groupable: false,
                  scrollable: false
              });
           }
       });
  </code></pre>