<div id="app"></div><script type="text/x-kendo-template" id="users"> <div data-role="grid" data-filterable="true" data-editable="true" data-sortable="true" data-bind="source: usersSource" data-columns="[{ field:'username', title:'Username' }, { field:'fullname', title:'Full Name' }, { command:'destroy' }]"></div></script>var usersModel = kendo.observable({ // the users data usersSource:new kendo.data.DataSource({ autoSync:true, schema:{ model:{ id:"_id" } }, transport:{ create:{ url:"/user", dataType:"json", type:"POST" }, destroy:{ url:function (user) { console.log(user) return "/user/" + user._id + "/" + user._rev }, type:"DELETE", dataType:"json" }, read:{ url:"/users", dataType:"json" }, update:{ url:"/user", dataType:"json", type:"POST" } } })});var usersView = new kendo.View("users", { model:usersModel});var router = new kendo.Router({ init:function () { usersView.render("#app"); }});$(function () { router.start();});/* trimmed */update:function(options){console.log(options);}/* trimmed */Uncaught SyntaxError: Unexpected number kendo.web.min.js:9st.setter kendo.web.min.js:9tt.extend._set kendo.web.min.js:11zt.extend.accept kendo.web.min.js:11tt.extend._accept kendo.web.min.js:11(anonymous function) kendo.web.min.js:11(anonymous function) jquery.min.js:3c jquery.min.js:3p.fireWith jquery.min.js:3i.(anonymous function) jquery.min.js:3a.(anonymous function).call.q.success kendo.web.min.js:11c jquery.min.js:3p.fireWith jquery.min.js:3k jquery.min.js:5r jquery.min.js:5Hi,
I have setup a kendo grid with a column that has as custom sort function. That works properly.
I am having difficulty having the grid use that custom sort function to sort the grid on initialization. It seems that the datasource sort property does not use the grids custom function.
Thanks,
Zohar Jackson
I have a MVVM page where upon loading, it make an ajax request to retrieve a model and set the viewmodel to the retrieved model. This model has a few strings and includes a LIST<rates> type. The form is bound to the model and includes input boxes for the strings plus an EDITABLE grid for the List<rates>. My issue is binding the grid to the List<rates> AND allowing it to be editable with a schema. How do I setup the Datasource to point to the List<rates> for the grid, and include a schema to allow for inline editing? I was trying to avoid having a separate remote datasource call since I already have the data from the initial setup.
My model is like this:
var existingtimeKeeperRatesModel = kendo.data.Model.define({ id: "TimeKeeperName", fields: { "TimeKeeperName": { type: "string", editable: false }, "StandardRate": { type: "number", editable: false }, "FromRate": { type: "number", editable: false }, "ToRate": { type: "number", editable: true }, "RateTerminateDate": { type: "date", editable: true, parse: function (value) { return kendo.parseDate(value, "MM-dd-yyyy"); } } },})
I have added a kendo scheduler that has Saturday and Sunday as non working days. I have then added a recurrent event that is running on a daily basis, but I had it created for all the week days (including the non working days) however I expected to have occurences created just for working days.
How is working days notion handled in Kendo scheduler ?
It seems like that Pie Chart and legend is centered in the space given. How do I make it so that the Pie Chart will align to the left and the Legend is a fixed width next to it?
Please see the attached image. I want the 3rd chart to be the standard format. As you can see, charts 1 and 2 have smaller text thus the legend itself is small and gets aligned more to the right. The 3rd chart, the pie is pushed to the left due to the legend width.
Hello,
I want to change type and size of series note marker. I tried to set series.notes.icon.size and series.notes.icon.type properties of chart but it did not work.
Even I tried to test the examples provided in API documentation (http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart) and surprisingly they also did not work.
http://dojo.telerik.com/Aratu
http://dojo.telerik.com/eYAVa
Am I doing anything wrong? Please help.
Regards,