or
<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" } } } }});$("#files").kendoUpload({ async: { saveUrl: "upload.aspx", autoUpload: true, batch: false }, files: files, upload: function (e) { filecount = filecount + 1; $.map(e.files, function (file) { var info = file.name; var filesize = file.size var upGrid = $('#upfilelist').data("kendoGrid"); var dataSources = UFSource; var newrecord = { ufid: compups, FileName: info, FileSize: filesize }; //alert(compups +'_'+ filename + '_' + filesize); dataSources.insert(newrecord); upGrid.dataSource = dataSources; }); }, complete: function (e) { //filecount = 0; compups = compups + 1 document.getElementById("FileCount").innerText = 'Files Uploaded: ' + filecount; $(".k-upload-files.k-reset").find("li").parent().remove(); }, showFileList: true });var dataSource = new kendo.data.DataSource({ dataType: "odata", transport: { read: { url: "http://localhost:8080/odata/SDA/TEIID_TEST", beforeSend: function(req){ req.setRequestHeader('Authorization','Basic dXNlcjp1c2Vy'); } } } });dataSource.read();