JSON.stringify is ignoring object properties

When an object has its own toJSON() implementation, JSON.stringify() uses the object returned from that method and stringifies that. kendo.data.Model defines it’s own toJSON() method which only returns the properties defined on the model, which is why you aren’t seeing other values (e.g. dirty, id, uid) in the string result. “If the stringify method sees … Read more

How to force a Kendo UI modal window to center in a page? and how to disable all the actions?

Have you tried hiding it, then centering and opening it? var accessWindow = $(“#accessDiv”).kendoWindow({ actions: {}, /*from Vlad’s answer*/ draggable: true, height: “300px”, modal: true, resizable: false, title: “Access”, width: “500px”, visible: false /*don’t show it yet*/ }).data(“kendoWindow”).center().open(); from: http://www.kendoui.com/forums/ui/window/kendowindow-center-doesn-t-work-when-inside-an-iframe.aspx

Kendo: Handling Errors in Ajax Data Requests

If you need to display an error message from the server then you can do it by returning a DataSourceResult object with only its Errors property set: return this.Json(new DataSourceResult { Errors = “my custom error” }); And pick it up on the client by using this (referenced by the .Events(events => events.Error(“onError”)) line): function … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)