<div class="k-calendar-container k-popup k-group k-reset" data-role="popup" style="display: none; position: absolute;"></div>$("#listView").kendoListView({ pageable: true, selectable: 'single', navigatable: false, editable: true, dataSource: viewModel.dataSource, template: $("#customListViewTemplate").html(), altTemplate: $("#customListViewTemplateAlt").html(), editTemplate: $("#editTemplate").html() });<!DOCTYPE html ><html ><head> <title></title> <script src="js/jquery.min.js" type="text/javascript"></script> <script src="js/kendo.all.min.js" type="text/javascript"></script> <link href="styles/kendo.mobile.all.min.css" rel="stylesheet" type="text/css" /><style>html,body{ width:100%;} </style> </head><body> <div data-role="view" id="main" data-layout="mobile-view" data-stretch="true"> <div style="background-image:url('images/Green Stripy Wallpapers.jpg');"> <a data-role="button" style="width:100%;">Button</a> <div id="example" class="k-content" style="width:100%; background:white;"> <div> <div id="chart" style="width:100%;"></div> </div> </div> </div> </div> <script type="text/javascript"> function createChart() { $("#chart").kendoChart({ theme: $(document).data("kendoSkin") || "default", title: { text: "Internet Users" }, legend: { position: "bottom" }, chartArea: { background: "" }, seriesDefaults: { type: "bar" }, series: [{ name: "World", data: [15.7, 16.7, 20, 23.5, 26.6] }, { name: "United States", data: [67.96, 68.93, 75, 74, 78]}], valueAxis: { labels: { format: "{0}%" } }, categoryAxis: { categories: [2005, 2006, 2007, 2008, 2009] }, tooltip: { visible: true, format: "{0}%" } }); } $(document).ready(function() { var app = new kendo.mobile.Application(); setTimeout(function() { // Initialize the chart with a delay to make sure // the initial animation is visible createChart(); $("#example").bind("kendo:skinChange", function(e) { createChart(); }); }, 400); });</script></body></html>With the Telerik KendoUI web Grid control, what are the requirements for us to get a value for filtering dates when using serverside filtering?
What we see when we filter on other columns - which is great, as we can easily parse this (strings for example) is:
|
filter[filters][0][field] |
|
filter[filters][0][operator] |
|
filter[filters][0][value] |
|
filter[logic] |
What we see when we filter on date columns is - there is no value to parse out here: (note: the value is missing for this date filter, but it was not missing in the string filter).
|
filter[filters][0][field] |
|
filter[filters][0][operator] |
|
filter[logic] |
Additional information about how we are using the date column in our grid:
Initialized with this column as a date:
field: "LastUpdated", title: "Updated", format: "{0:MM/dd/yyyy}"
Datasource for this grid has this column as a date:
LastUpdated: { type: "date", nullable: true }
Thank you,
Chris
<div id="example" class="k-content"> <div id="tweets-container" class="k-header k-menu-vertical"> <h3> Twitter feed</h3> <div id="search-box"> <label> Search for: <input type="text" value="html5" id="searchfor" class="k-textbox" /> </label> <button class="k-button" id="search"> search</button> </div> <div id="tweets"> <div> Loading ... </div> </div> </div> <script id="template" type="text/x-kendo-template"> <div class="tweet k-header"> <img width="48" height="48" src="#= profile_image_url #" alt="#= from_user #" /> #= FirstVal # </div> </script> <script> $(document).ready(function () { // create a template using the above definition var template = kendo.template($("#template").html()); var Product = kendo.data.Model.define({ id: "FirstID", fields: { "FirstVal": { type: "string" }, "SecondVal": { type: "string" } } }); var dataSource = new kendo.data.DataSource({ transport: { read: { url: "/ws/getservice.asmx/GetAllTestimonials", // the remove service url data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", // JSONP (JSON with padding) is required for cross-domain AJAX complete: function(data,xhr){ result = JSON.parse(data.d.resposeText); } } }, change: function () { // subscribe to the CHANGE event of the data source $("#tweets").html(kendo.render(template, dataSource.view())); } }); // read data from the remote service dataSource.read(); $("#search").click(function () { dataSource.read(); }); $("#searchfor").keydown(function (e) { if (e.keyCode === kendo.keys.ENTER) { dataSource.read(); } }); }); </script>[{"FirstID":1,"FirstVal":"Test","SecondVal":"TestOne"},{"FirstID":2,"FirstVal":"Test","SecondVal":"TestTwo"}]<input id="gradeCombo" data-role="combobox" data-bind="value: source.gradeValue"/><input id="gradeCombo" data-role="combobox" data-bind="value: source.gradeValue, text: source.gradeText"/>