or
01.@(Html.Kendo().Chart(Model)02. .Name("graphicchart")03. .Title(title => title.Text(ViewBag.graphictitle))04. .Legend(legend => legend05. .Position(ChartLegendPosition.Bottom)06. )07. .ChartArea(chartArea => chartArea08. .Background("transparent")09. )10. .SeriesDefaults(seriesDefaults =>11. seriesDefaults.Line()12. )13. .Series(series =>14. {15. series.Line(model => model.Parvalue).Name("Valor").Labels(true).Markers(true).Width(3).Opacity(0.8);16. })17. .CategoryAxis(axis => axis18. .Categories(model => model.Datetimevalue)19. .MajorGridLines(lines => lines.Visible(false))20. .Labels(labels => labels.Rotation(-90))21. .Date()22. .BaseUnitStep(10)23. .MinorGridLines(lines => lines.Visible(true))24. )25. .Tooltip(tooltip => tooltip26. .Visible(true)27. .Format("{0}")28. )29.)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>); })