I have a tag like this
<button data-bind="attr: { data-placeholder: Placeholder(512) }" />
Usually I trigger the change like this: model.trigger('change', { field: 'Placeholder'}) but this doesn't work in this case.
Could anyone help me?
Thanks!

Hello,
I'm trying to do following thing: when user leaves the page with grid his current filters ang sortings are saved and applied the next time he visits the page (not the whole persisted state).
So I'm doing it like this:
var savedFilters = localStorage["kendo-grid-filters"];
if (savedFilters) {
$("#grid").data("kendoGrid").dataSource.filter(JSON.parse(savedFilters));
}
var savedSort = localStorage["kendo-grid-sort"];
if (savedSort) {
$("#grid").data("kendoGrid").dataSource.sort(JSON.parse(savedSort));
}
window.onbeforeunload = function () {
localStorage["kendo-grid-filters"] = kendo.stringify($("#grid").data("kendoGrid").dataSource.filter());
localStorage["kendo-grid-sort"] = kendo.stringify($("#grid").data("kendoGrid").dataSource.sort());
return;
}
Everything is working fine except filter for Date columns. For example, i set filter "equal to 08.08.2018", it filters the column. Then I leave the page and filter stored in local cache is "{field: "BPStartDate", operator: "eq", value: "2018-08-07T21:00:00.000Z"}". Then I visit the page again and I see that filter is kinda applied (filter icon is highlighted and has correct value) but I can't see filtered data.
What is the problem?
I attached two screenshots to illustrate what I'm talking about.
Thanks.
How to add onclick to inside visual HTML content? https://docs.telerik.com/kendo-ui/controls/charts/how-to/various/html-in-axes-labels
I have two datasource, how to achieve overlay one datasource to another datasource bar like in this example https://docs.telerik.com/kendo-ui/knowledge-base/chart-overlay-bar-series
<div id="view"> <div id="grid" data-role="grid" data-editable="false" data-columns="[{ 'field': 'Name' }, { 'field': 'Version'}]" data-bind="source: releases"> </div></div>and a view model defined so...
var viewmodel = kendo.observable({ releases: new kendo.data.DataSource({ schema: { model: { id: "Id", fields: { Id: { type: "string" }, Name: { type: "string" }, Version: { type: "string" }, CreatedOn: { type: "datetime" } } } }, transport: { read: { url: "/Release/Index?handler=List", type: "jsonp" } } })});
When I try and render the page, the controls show, but there is no data, instead I get a 400 error. More reading tells me about anti-forgery tokens and how to set the header on my post request, so I add this to the top of my page....
@inject Microsoft.AspNetCore.Antiforgery.IAntiforgery Xsrf
And, I set the header for the call with the anti forgery token, with this in my client side code...
$(function () { const requestVerificationToken = '@Xsrf.GetAndStoreTokens(HttpContext).RequestToken'; const beforeSend = req => req.setRequestHeader('RequestVerificationToken', requestVerificationToken); const grid = $("#grid").getKendoGrid(); grid.dataSource.transport.options.read.beforeSend = beforeSend; grid.data.read();});
Now when I call my page, I get "Cannot read property 'read' of undefined."
Everything I've read suggests that I'm doing it right!
What am I not doing?

Are there any updates on this topic ? Since I am using Kendo UI slider with razor view having version 2017.2.621.545 and I am not able to get it works in mobile devices specially on iPhone.
The code is as follows -
@(Html.Kendo().SliderFor(m => m.PercentChanceClose)
.Name("PercentChanceClose")
.ShowButtons(true)
.Tooltip(true)
.Max(100)
.Min(0)
.SmallStep(5)
.LargeStep(10)
.Events( e => e.Change("SliderChange"))
.IncreaseButtonTitle("Perecent(%) Chance Close")
.HtmlAttributes(new { @class = "form-control"})
)
JavaScript function -
function SliderChange(e) {
if (e== null) {
SliderValue(50);
}
else {
SliderValue(e.value);
}
}
function SliderValue(x) {
var top = $("#PercentChanceClose").closest(".k-slider-wrap");
if (x >= 0 && x <= 24) {
$(".k-slider-track", top).css("background-color", "#00ff00");
$(".k-slider-selection", top).css("background-color", "#00ff00");
}
else if (x >= 25 && x <= 74) {
$(".k-slider-track", top).css("background-color", "#ffa500");
$(".k-slider-selection", top).css("background-color", "#ffa500");
}
else {
$(".k-slider-track", top).css("background-color", "#ff0000");
$(".k-slider-selection", top).css("background-color", "#ff0000");
}
}