// TODO: set default filter operator to [contains].Filterable(filter =>{ filter.Extra(false); filter.Operators(op => { op.ForString(str => str.Clear()); op.ForString(str => { str.Clear().Contains("Contains"); }); });})I have the following 2 simple requirements while dealing with Kendo Grid.
.DataSource(dataSource => dataSource .Ajax() .Read(read => read.Action("GetItemImages", "CatalogItemMaintenance", new { itemId = Model.ItemId})))Hi Kendo team,
I am having a strange issue with a datasource that is feeding some charts.
The datasource looks like this:
var chartDs = new kendo.data.DataSource({ transport: { read: { url: "Export/GetReportHistory", type: "POST", dataType: "json", data: { numberOfMonths: function () { return $("#chartTimeFrame").val(); } } } } });This is works fine as it is, but when the page is loaded (document.ready) my server action (MVC3) is hit twice.
That means data is returned twice and the chart animation is run twice :-\
A dropdownlist on my page reloads the charts based on different data, when this event is triggerd, the server is also hit twice in a row displaying the behavior described above.
$("#chartTimeFrame").change(function () { $("#reportChart").data("kendoChart").dataSource.read(); $("#damageChart").data("kendoChart").dataSource.read(); $("#defectChart").data("kendoChart").dataSource.read(); });I can't seem to find the source of the problem so I hope you can help me out :-( (and it makes the charts animations look strange bouncing up and down when they are reloaded).
Update:
It seems this has been asked before (I should have searched a little further before posting)
and the answer can be found here: http://www.kendoui.com/forums/framework/data-source/shared-datasource---each-ui-element-seems-to-read.aspx
Sorry for double posting :-(
<script id="treeViewTemplate" type="text/x-kendo-tmpl"> <span style="background-color:#: item.Color #"> </span> #: item.Name #</script>