Hi I'm new to kendo ui, recently had created a table using kendo grid and my data shown [object Object] the cell.
what is the way to display the address object in a single data.
<!DOCTYPE html><html><head> <style>html { font-size: 14px; font-family: Arial, Helvetica, sans-serif; }</style> <title></title> <link rel="stylesheet" href="//kendo.cdn.telerik.com/2016.2.714/styles/kendo.common-material.min.css" /> <link rel="stylesheet" href="//kendo.cdn.telerik.com/2016.2.714/styles/kendo.material.min.css" /> <link rel="stylesheet" href="//kendo.cdn.telerik.com/2016.2.714/styles/kendo.default.mobile.min.css" /> <script src="//kendo.cdn.telerik.com/2016.2.714/js/jquery.min.js"></script> <script src="//kendo.cdn.telerik.com/2016.2.714/js/kendo.all.min.js"></script></head><body> <div id="example"> <div id="grid"></div> <script> var peoples = { "people": [{ "name": "John Smith", "phone": "(519) 420-2391", "address": { "street": "123 Main St", "city": "Someplace" } }]}; $("#grid").kendoGrid({ dataSource: { data: peoples, schema: { data: 'people' }, }, scrollable: true, sortable: true, resizable: true, pageable: true, columnMenu: true, columns: peoples}); </script> </div></body></html>

http://demos.telerik.com/kendo-ui/treelist/editing
How to add a new Row under a selected node. Not able to select a row in demo above. It always adds a new row at the top. I am using Chrome.
Thanks
Hi All,
I'm very new to this community and started to use the trial version of Kendo UI on Friday last week. I was asked by my Head of Department to test the functionalities of Kendo UI to see if it would be interesting to buy for the developers team (me included). As the main use of it would be in SharePoint web part and application pages, I used the JS / HTML 5 version and tried to get pieces of information on the documentation and on Internet, I followed this tutorial even if it does not exactly match my needs on Code Project - Kendo UI in SharePoint Online to display the items of a list in a grid.
With the tutorial, I manage to get a working grid using the provided url for the data source. I tried to adapt the code to retrieve the items of the list I want to display in the current SharePoint Site Collection (which is on premises, not online), but now, each time the grid launches the request for the data source, it keeps prompting me for credentials despite the fact that the data is available on the same site as the page being executed. Even so, if I provided the credentials manually, it only ask again for credentials endlessly without displaying anything.
Can you help me with that ?
Maybe the best is that I show you the code I currently have :
The headers :
<link href="/_layouts/15/MyTools/styles/kendo.common-office365.min.css" type="text/css" rel="stylesheet" /><link href="/_layouts/15/MyTools/styles/kendo.office365.min.css" type="text/css" rel="stylesheet" /><script src="/_layouts/15/MyTools/js/jquery-2.2.1.min.js" type="text/javascript"></script><script src="/_layouts/15/MyTools/js/kendo.all.min.js" type="text/javascript"></script>
The code itself :
$(document).ready(function () { var appWebUrl = _spPageContextInfo.webAbsoluteUrl; var listToDisplay = "<%= GetListToDisplay() %>"; var dataSource = new kendo.data.DataSource({ schema: { model: { fields: { ID: { type: "number" }, Title: { type: "string" }, Author: { type: "string" }, Created: { type: "date" }, Editor: { type: "string" }, Modified: { type: "date" } } }, data: function (data) { return data.d && data.d.results ? data.d.results : [data.d]; }, errors: function (response) { return response.error; } }, transport: { read: { url: appWebUrl + "/_api/lists/getbytitle('" + listToDisplay + "')/items", headers: { "accept": "application/json; odata=verbose" } } }, pageSize: 20 }); $("#grid").kendoGrid({ dataSource: dataSource, height: 550, groupable: false, sortable: true, pageable: { refresh: true, pageSizes: true, buttonCount: 5 }, columns: [ { field: "ID", title: "ID" }, { field: "Title", title: "Title", width: 240 }, { field: "Author", title: "Created By" }, { field: "Created", title: "Created" }, { field: "Editor", title: "Modified By" }, { field: "Modified", title: "Modified" }] });});
Did I do something wrong or have I missed something while setting up the grid ?
Thank you in advance for your help,
Best Regards,
Kevin
Hello,
I'm using the Benchmark demo to create my application.
The demo is shifting the data because the interval limit.
Is it possible for not shifting the data so that we can pan the previous data when it stop?
I'm trying to set up a TreeView. My json data from the server has IDs and Parent IDs that contain what the hierarchy is. Root levels have parentId of "NULL". Can I not specify my hierarchy self-referentially like this? Do I HAVE to make an "items: []" sub-structure in my JSON for each parent node?
var ds = new kendo.data.HierarchicalDataSource({ transport: { read: function(e) { //JSON is returned here. Example [{id: 50, parentId: "NULL", name: "abc"}, {id: 51, parentId: 50, name: "xyz"}] } }, schema: { model: { id: "id", parentId: "parentId", fields: { id: { type: "number" }, parentId: { type: "number", defaultValue: 0 } } } } });


I am using the HTML wrapper for the ListView in MVC. I give the ListView a datasource to an Odata service. I am using a template to display the items in the ListView. When the page first loads and service returns the data the templates are rendered on the bind. However, when I attempt to query the data source the template is not rendered. The call to my OData service succeeds and data is returned as confirmed in the Developer Tools, and loading spinner is displayed over the control while the query is executing.
The idea here is that I will call the query on a button click so that I can apply filters.
Thanks
Template:
<script type="text/x-kendo-tmpl" id="resultsViewTemplate"> <div class="col-md-6"> <div class="thumbnail"> <h2> #:Name# </h2> <div class="result-item location"> <h3>Location:</h3> <p>#:Floor#</p> <p>#:StreetAddress#</p> <p>#:City#, #:State# #:ZipCode#</p> </div> <div class="result-item restrictions"> <h3>Restrictions:</h3> <p></p> <p></p> </div> <div class="result-item amenities"> <h3>Amenities</h3> </div> </div> </div></script>
Query:
$("#update").on("click", function(e) { $("#resultsListView").data().kendoListView.dataSource.query();});
Configuration of the ListView:
@(Html.Kendo().ListView<ResourceViewModel>() .TagName("div") .ClientTemplateId("resultsViewTemplate") .AutoBind(true) .DataSource( ds => ds .Custom() .Type("odata-v4") .Transport( tp => tp .Read( read => read .Url($"/api/vm/Resources/Models.GetAvailable") ) ) .PageSize(6) .ServerPaging(true) .ServerSorting(true) ) .Name("resultsListView"))

Hi,
the click event is not fired if the button is togleable:
<body> <div id="example"> <div class="demo-section k-content wide"> <div id="toolbar"></div> </div> <script> $(document).ready(function() { $("#toolbar").kendoToolBar({ items: [ { type: "button", text: "Button",click: onclick }, { type: "button", text: "Toggle Button", togglable: true, click: onclick }, ]}); }); function onclick(e) { alert(e.target.context.innerText); } </script> </div></body>Is there an other event to catch the state changed?
Peter
