I am using in-line editing of data in the kendo grid. When I am editing a cell I want to do the following:
At the minute I've tried the following from bits online:
01.$(function () {02. 03. $("#mygrid").keypress(function (e) {04. 05. var keyCode = e.keyCode || e.which;06. if (keyCode == 13) {07. debugger;08. var grid = $("#mygrid").data("kendoGrid");09. var curCell = grid.table.find(".k-edit-cell");10. grid.saveRow();11. grid.editCell(curCell.next()); // To move the cursor to the next cell and put the cell in edit mode12. grid.select(curCell.next()); // To select the next cell13. //grid.focus(curCell.next()); // To set focus on to next cell 14. e.preventDefault(); // To prevent the default behavior of the enter key press15. }16. });17. });I cannot see any method on how to accept the grid cell changes.
Any help on how to accomplish the above greatly appreciated.
Andez
I've a very large grid, more then 1000 rows. The data is already downloaded from the server, so I create a datasource like this:
dataSource = new kendo.data.DataSource({
data: this.slateData,
group: this.slateGridGroups,
filter: this.getNodeFilter() }
);
I use custom row templates, so it's very slow to load/reload the grid. When I initialize, filter or sort the grid, the browser will freeze for about 5 seconds.
I want to solve this problem by adding a pageSize parameter to the dataSource and make the gird option pagable = false, scrollable: { virtual: true}
However, if I use it in this way, I'm unable to load all the group header at the beginning. I need to keep scrolling down to get new group headers. This is not acceptable by our requirement.
How can I solve this problem?
Hi,
Does the Kendo Ui grid support the following functionalities
1) Column hiding and Lazy load paging
2) Are all the functionalities(configuration options) mentioned in the demos and sample applications shown using Jquery present in angularjs implementation?
Regards
Rich
Hi
I am charting data values (value axis) that are to be presented by Year (series) and Month (category axis).
I'm trying to create a chart that fills in missing values with zeros. My problem is that my data is based on dates and some years are missing the first months, other years are missing the last months and some years are missing months in between. I'm not sure how to make the chart fill correctly in to these missing values. In the following fiddle you can see that all series start at January but for example, the year 2014 only has months 5,6,9.
Can you explain if Kendo Chart is able to fill in or ignore these gaps and bind the months to the correct category axis.
http://jsfiddle.net/jokullie/4m977twr/
Thank you,
Baldvin
Hi,
I am currrently evaluating the TreeMap control. I am interested in using it in an AngularJS application. I could not find much documentation on the API. The following link leads to a 404 error. http://www.telerik.com/support/code-library/kendo-ui/treemap
Basically I would like to know if I customize the template of each cell. Rather than having only one label in each cell, could I have a few labels, each with different font and size?
Is there a click event? When a user clicks on a cell, I'd like that to be directed to another page.
I could only see a basic usage of the Treemap. Is there an advanced sample available?
Thanks,
Chris
I've been banging my head all day on this. I know you can open a window and then say have a button that when clicked opens another window from inside that.
See here for a demo: http://plnkr.co/edit/vl2VTi6EIXKcViwl1xae?p=preview
In my project however I am trying to do the same thing but instead of working as expected it is rendering the kendo windows inline (as if they are just divs with content in them).
When I swap out the version of kendo I am using (v2015.3.930) with the version inside my plnkr (2014.2.716) my kendo-window divs are no longer rendered but they also still do not work.
What could cause this behavior with the kendo-window components? Could angular-ui-router have anything to do with this? The initial kendo-window is being called from a nested (named) ui-view. The only other javascript libraries I am using are angular-toastr and angular-local-storage (of which I don't think either could be the culprit).

$("#grid").kendoGrid({ dataSource: { type: "json", serverPaging: true, serverFiltering: false, serverSorting: true, batch: false, pageSize: 10, sort: { field: "image_date", dir: "desc" }, schema: { data: 'data', total: 'total', model: { id: "image_file_name", fields: { image_field: { type: "string"/*, editable: false*/ }, image_file_name: { type: "string" }, image_file_size: { type: "numbers" }, image_date: { type: "string" } } } }, error: function (e) { var json = jQuery.parseJSON(e.responseText); alert("An error has occured: " + json.Message); }, transport: { read: { type: "POST", dataType: "json", url: "<?php echo $this->url( array('module' => 'Portfolio','controller' => 'frontend', 'action' => 'grid'), 'adminrout', true) ?>", data : <?php echo $this->settings_json_info; ?>, complete: function(e) { //alert(e.responseText.toSource()); } }, destroy: { type: "GET", dataType: "json", cache: false, url: "<?php echo $this->url( array('module' => 'Portfolio','controller' => 'frontend', 'action' => 'delete'), 'adminrout', true) ?>", data : <?php echo $this->settings_json_info; ?>, complete: function(e) { alert(e.responseText.toSource()); } }, } }, selectable: "multiple", change: OnChange, height: 280, filterable: true, pageable: { refresh: true, pageSizes: true }, scrollable: { virtual: true }, sortable: true, reorderable: true, resizable: true, columns: [ { field: "image_field", title: "Images", width: 50, template: '<img src="<?php echo $this->serverUrl().$this->baseUrl(); ?>/${ image_field }" height="60" />' }, { field: "image_file_name", title: "Name", width: 200}, { field: "image_file_size", title: "Size", width: 100}, { field: "image_date", title:"Date", width: 100}, { command: { name: "destroy", text: "Delete" }, title: " ", width: 100 } ], editable: { //disables the deletion functionality update: false, destroy: true } });