or
function calculateAggregate(accumulator, aggregates, item, index, length, state) { aggregates = aggregates || []; var idx, aggr, functionName, len = aggregates.length; for (idx = 0; idx < len; idx++) { aggr = aggregates[idx]; if (aggr) { functionName = aggr.aggregate; var field = aggr.field; accumulator[field] = accumulator[field] || {}; state[field] = state[field] || {}; state[field][functionName] = state[field][functionName] || {}; accumulator[field][functionName] = functions[functionName.toLowerCase()](accumulator[field][functionName], item, kendo.accessor(field), index, length, state[field][functionName]); } } }
<div class="countdownKendoGrid" data-bind="kendoGrid: { data: $parent.RandomList, rowTemplate: ​'rl-row-template',​columns: [{ field: 'COL1', title: 'COL1', width: '50%' }, { field: 'COL2', title: 'COL2', width: '50%' }], filter: [{ field: ​'COL1', operator: 'eq', value: 'AB1234' }]}​"></div>
My questions, since I'm rather new at this, are:
1). Why would just the row where COL1 equals to AB1234 not be the only one that appears?
2). could I substitute "value: 'AB1234'" to be a property in my ViewModel? ie: value: $parent.MyBindableValue
J
​​​​​​​​​​​​​​​
​​​​​​

var epConnection = $.hubConnection();var hub = epConnection.createHubProxy("EventsPendingHub");var hubStart = epConnection.start();$('#tblEventsPending').kendoGrid({ sortable: true, columns: [ { field: "EventNum" }, { field: "Area" }, { field: "Zone" }, { field: "Priority" }, { field: "Type" }, { field: "TIQ" }, { field: "Location" }, { field: "Apt"} ], dataSource: { type: "signalr", autoSync: true, schema: { model: { id: "EventNum", fields: { "EventNum": { type: "string" }, "Area": { type: "string" }, "Zone": { type: "string" }, "Priority": { type: "string" }, "Type": { type: "string" }, "TIQ": { type: "string" }, "Location": { type: "string" }, "Apt": {type: "string"} } } }, sort: [ { field: "Priority", dir: "desc"}, { field: "TIQ", dir: "desc"} ], transport: { signalr: { promise: hubStart, hub: hub, server: { read: "read", update: "update", destroy: "destroy", create: "create" }, client: { read: "read", update: "update", destroy: "destroy", create: "create" } } } }});