or
<input id="startDate" name="startDate" data-role="datepicker" data-bind="value: selectedStart, events: { focus: EffectiveDateFocus }" />http://demos.telerik.com/kendo-ui/editor/index
<style> .k-treeview .k-checkbox { opacity: 1; width: auto; }</style>class MyDto{ String name; Guid id; String userName; Guid userId;}update: { url: "api/linkUser", method: 'POST', complete: function(e) { refreshGrid(); }},parameterMap: function (options, operation) { if (operation !== "read" && options.models) { var data = {}; data.Id = JSON.parse(JSON.stringify(options.models))[0].Id; data.UserId = JSON.parse(JSON.stringify(options.models))[0].UserId; return data; }},
Server method:
public Result linkUser(Guid id, Guid userId)
{
bool result = CheckAndSave(id, userId);
if(result)
{
return new Result(true, "Success!");
}
else
{
return new Result(false, "Error!");
}
}
So I 'd like to handle result on client side and show notification if I get an error.
But on client-side I get "​Uncaught SyntaxError: Unexpected token u" and update-complete function does not called.
What's problem? How to supress this error? May be there is a workaround?
Thanks in advance.