or
columns.Template(@<text></text>).ClientTemplate("<img class='undoButton' style='width:16px;' src='Content/images/undo.png' />").Width(32);<script type="text/javascript"> // Undo functionality $('#activity-grid').on('click', '.undoButton', function (e) { e.preventDefault(); //alert('undo'); var grid = $('#activity-grid').data().kendoGrid; var dataItem = grid.dataItem($(this).closest('tr')); dataItem.dirty = false; grid.dataSource.cancelChanges(dataItem); // works //grid.refresh(); // only way to show the changes in the UI });</script>Using "contains" filter gives me all rows that do not have the specified value. How can I filter grid rows that do not contain a certain value, so that I only get rows that do have the value? I tried "doesnotcontain" which doesn't work.
if (val) { grid.dataSource.filter({ logic: "or", filters: [ { field: "someField", operator: "contains", value: val }, { field: "someField2", operator: "contains", value: val },...@(Html.Kendo().PanelBar() .Name("panelbar") .HtmlAttributes(new { @style = "width:100%" }) .ExpandMode(PanelBarExpandMode.Multiple) .Items(panelbar => { panelbar.Add().Text("Summa kontant och kort") .Expanded(true) .Content(@<div style="padding: 10px;"> @(Html.Kendo().Chart(Model) .Name("graphCashOrCard") .Title("Köp med kort och kontant") .HtmlAttributes(new { @style = "width:100%" }) .Legend(legend => legend .Position(ChartLegendPosition.Top) ) .Series(series => { series.Column(model => model.TotalCoin).Name("Summa kontantköp"); series.Column(model => model.TotalCreditCard).Name("Summa kortköp"); }) .CategoryAxis(axis => axis .Date() .BaseUnit(ChartAxisBaseUnit.Fit) .Categories(model => model.TimeStamp) .Labels(labels => labels.Rotation(-90)) .MajorGridLines(lines => lines.Visible(false)) ) .ValueAxis(axis => axis.Numeric() .Labels(labels => labels.Format("{0:N0}")) .MajorUnit(100000) .Line(line => line.Visible(false)) ) .Tooltip(tooltip => tooltip .Visible(true) .Format("{0:N0}") ) ) </div>); panelbar.Add().Text("Antal fel") .Expanded(false) .Content(@<div style="padding: 10px;"> @(Html.Kendo().Chart(Model) .Name("graphFaults") .Title("Antal fel") .HtmlAttributes(new { @style = "width:100%" }) .Legend(legend => legend .Position(ChartLegendPosition.Top) ) .Series(series => series.Column(model => model.NrErrors).Name("Antal Fel")) .CategoryAxis(axis => axis .Date() .BaseUnit(ChartAxisBaseUnit.Fit) .Categories(model => model.TimeStamp) .Labels(labels => labels.Rotation(-90)) .MajorGridLines(lines => lines.Visible(false)) ) .ValueAxis(axis => axis.Numeric() .Labels(labels => labels.Format("{0:N0}")) .MajorUnit(20) .Line(line => line.Visible(false)) ) .Tooltip(tooltip => tooltip .Visible(true) .Format("{0:N0}") ) ) </div>); panelbar.Add().Text("Antal transaktioner") .Expanded(false) .Content(@<div style="padding: 10px;"> @(Html.Kendo().Chart(Model) .Name("graphTransactions") .Title("Antal transaktioner") .HtmlAttributes(new { @style = "width:100%" }) .Legend(legend => legend .Position(ChartLegendPosition.Top) ) .Series(series => series.Column(model => model.NrTransactions).Name("Antal transaktioner")) .CategoryAxis(axis => axis .Date() .BaseUnit(ChartAxisBaseUnit.Fit) .Categories(model => model.TimeStamp) .Labels(labels => labels.Rotation(-90)) .MajorGridLines(lines => lines.Visible(false)) ) .ValueAxis(axis => axis.Numeric() .Labels(labels => labels.Format("{0:N0}")) .MajorUnit(10000) .Line(line => line.Visible(false)) ) .Tooltip(tooltip => tooltip .Visible(true) .Format("{0:N0}") ) ) </div>); })@Html.Kendo().AutoComplete().Name("SOCAutocomplete").Events(events => events.Select("onOpCodeSelect")).DataTextField("opCode").DataSource(d => d.Read(r => r.Action("GetServiceOpCodes", "Onboarding")))