Greetings! I wish to fill three grids from a single datasource (call to metered API). The API returns 30 rows, I want rows 1 - 10 in grid1, rows 11-20 in grid2 and rows 21-30 in grid3.
My data source (copied from your web API demo) is
$(document).ready(function () { var MedicareRiskDataSource = new kendo.data.DataSource( { transport: { read: { type: "GET", dataType: "json", beforeSend: function (req) { req.setRequestHeader("FCG-ApiKey", "DA103B60C7A340FFA85532F716FC478D"); } } }, schema: { data: function (response) { return response.Metrics; }, model: { id: "MetricID", fields: { MetricID: { type: "number" }, MetricDescription: { type: "string" }, PhysicianValue: { type: "number" }, SpecialtyValue: { type: "number" }, VarianceValue: { type: "number" } } } },I can filter here, with
filter: { field: "MetricID", operator: "lt", value: 11 }or
filter: { logic: "and", filters: [ { field: "MetricID", operator: "gt", value: 10 }, { field: "MetricID", operator: "lt", value: 21 } ]}However, that would require three data sources and thus three calls to the API, which we pay for.
My grids look alike, with different names
$("#allServicesGrid").kendoGrid({ dataSource: MedicareRiskDataSource, scrollable: false, columns: [ { field: "MetricDescription", title: "Name", width: 400 }, { field: "PhysicianValue", title: "Physician", width: 100 }, { field: "SpecialtyValue", title: "Specialty", width: 100 }, { field: "VarianceValue", title: "Variance", width: 100 }]});I've added "filterable" to the grid, but that
1) enables the icon on the column header which I do not want
2)
​