Hi, I have the following problem and do not know how to fix it, do not leave me buttons to edit, delete the command. please help. and excuse my English
I leave the files you work
<script>
$(document).ready(function () {
var crudServiceBaseUrl = "editing.php",
dataSource = new kendo.data.DataSource({
transport: {
read: {
url: crudServiceBaseUrl + "?type=read",
contentType: "application/json; charset=utf-8",
type:"POST"
},
update: {
url: crudServiceBaseUrl + "?type=update",
contentType: "application/json; charset=utf-8",
type:"POST"
},
destroy: {
url: crudServiceBaseUrl + "?type=destroy",
contentType: "application/json; charset=utf-8",
type:"POST"
},
create: {
url: crudServiceBaseUrl + "?type=create",
contentType: "application/json; charset=utf-8",
type:"POST"
},
parameterMap: function(data) {
return kendo.stringify(data);
}
},
batch: true,
pageSize: 20,
schema: {
data: "data",
model: {
id: "ProductID",
fields: {
ProductID: { editable: false, nullable: true },
ProductName: { validation: { required: true } },
UnitPrice: { type: "number", validation: { required: true, min: 1} },
Discontinued: { type: "boolean" },
UnitsInStock: { type: "number", validation: { min: 0, required: true } }
}
}
}
});
$("#grid").kendoGrid({
dataSource: dataSource,
pageable: true,
height: 550,
toolbar: ["create","save"],
columns: [
{ field:"ProductName", title: "Nombre del Producto" },
{ field: "UnitPrice", title:"Precio Unitario", format: "{0:c}", width: "120px" },
{ field: "UnitsInStock", title:"Unidades", width: "120px" },
{ field: "Discontinued",title:"Disponible", width: "120px" },
{ command: ["edit", "destroy"], title: " ", width: "250px" }],
editable: "popup"
});
});
</script>
php.editing
<?php
require_once '../lib/DataSourceResult.php';
require_once '../lib/Kendo/Autoload.php';
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
header('Content-Type: application/json');
$request = json_decode(file_get_contents('php://input'));
$result = new DataSourceResult('mysql:host=localhost;dbname=northwind;charset=utf8', 'root', 'jp72240');
$type = $_GET['type'];
$columns = array('ProductID', 'ProductName', 'UnitPrice', 'UnitsInStock','Discontinued');
switch($type) {
case 'create':
$result = $result->create('products', $columns, $request->models, 'ProductID');
break;
case 'read':
$result = $result->read('products', $columns, $request);
break;
case 'update':
$result = $result->update('products', $columns, $request->models, 'ProductID');
break;
case 'destroy':
$result = $result->destroy('products', $request->models, 'ProductID');
break;
}
echo json_encode($result,JSON_NUMERIC_CHECK);
exit;
}
?>​

My grid has "groupable: true", however only ​selected columns are groupable:
columns: [
{ field: "todo", groupable: false },
{ field: "author", minScreenWidth: 768 } ]
"Trouble" is the "grouping drop area" is visible on any screen size, but the groupable columns are not shown on small screens.
How can I control visibility of the "grouping drop area" based on screen size?
A "groupable.minScreenWidth" property would be great.

I found that <input kendo-date-time-picker ng-disabled="true" /> doesn't disable the calendar and clock icons in IE10 so user can still use them to set datetime, but it works fine in IE11, chrome and other browsers, is it a bug?
Here is a example to reproduce the issue: http://dojo.telerik.com/@darkthread/UFIVo
I'm trying to create a custom button for the kendo ui editor. The button works fine except when I try to use a custom template.
Here's the code for my custom button:
var currentDateAction = { name: 'currentDate', tooltip: vm.TemplateLetterCurrentDateLabel(), template: '<button class="k-button">' + vm.TemplateLetterCurrentDateLabel() + '</button>', exec: function () { var editor = $(this).data('kendoEditor'); editor.exec('inserthtml', { value: vm.TemplateLetterCurrentDate() }); }};If I comment the template line, the button works, otherwise it doesn't.
What do I have to do, to have a custom template for my button?
I have put the below code on my dataSource. It is inserting the data into the dataSource like it should but the row does not show up on the grid unless I do something on the grid like changing the sort. Do I need to re-sync the grid with the dataSource? If so how do I do that?
change: function (e) {
if (e.action == "add") {
var newItem = e.items[0];
if (this.filter() != undefined) {
var filter = this.filter().filters;
var i = filter.length;
while (i--) {
filterValue = filter[i].value;
filterField = filter[i].field;
switch (filterField) {
case "product.textField":
newItem.product.textField = filterValue;
break;
case "product.valueField":
newItem.product.valueField = filterValue;
break;
default:
newItem[filterField] = filterValue;
}
}
}
}
}
thx!
Our Views are composed from dynamic components, each having own "View" and ViewModel. They are built independently and can have identical names of bound properties in a Model. As far as I see, when applying binding between View and ViewModel, Kendo UI will travers entire DOM tree. This will apply wrong values to components that do not belong to the "View" in question, but have the same name of bound properties. With Knockout I can use "controlsDescendantBindings" instruction to stop binding from drilling down on a DOM subtree - does Kendo UI have any way to do the same?
Thanks,
Sam
It seems the Angular howto: "Custom editor with Angular JS" is out-dated?
From the howto...
$scope.categoryDropDownEditor = function(container, options) { var editor = $('<input kendo-drop-down-list required k-data-text-field="\'CategoryName\'" k-data-value-field="\'CategoryID\'" k-data-source="ddlDataSource" data-bind="value:' + options.field + '"/>') .appendTo(container); $compile(editor)($scope); editor.css("visibility", "visible");}The function creating the cell editor does a $compile on the custom element "editor". However when I follow this approach I noticed that in my own code the link functions in my directives on the custom element execute twice. Upon investigation it seems that since Kendo compiles the TD containing my custom element, my custom ​element will automatically get compiled so doing a compile within the custom cell editor function is not correct?
Using the products example, I have a 5 column grid. Columns 1 and 2 are frozen​, 3 and 4 are editable, and 5 is not editable.
I have used the onkeypress event to modify the tab behavior so it will only tab in columns 3 and 4, but it will also wrap from the last item in column 4 to the first one in column 3.
What I need to figure out is how to also change the selected cell based on using the arrow keys. The first one I am working on is the UP keypress. While I can detect the UP press, and I'm not sure the best way to get the previous row for the same column.