@(Html.Kendo().Grid(Model) .Name("grid") .Columns(columns => { foreach (System.Data.DataColumn column in Model.Columns) { columns.Bound(column.ColumnName); } }) .Pageable() .Sortable() .DataSource(dataSource => dataSource .Ajax() .Model(model => { foreach (System.Data.DataColumn column in Model.Columns) { model.Field(column.ColumnName, column.DataType); } }) .Read(read => read.Action("Read", "Reports")) ) )public ActionResult Read([DataSourceRequest] DataSourceRequest request) { DataTable products = Products(); return Json(products.ToDataSourceResult(request)); }Hi. As show in this demo http://plnkr.co/w44pS20LB0K1EpxPIq1i.
In index.html line 82, i am using a custom command.
I want to when i click custom command (inside background color green) it will triggle 'create' command in sub grid(background color blue).
Is it possible?

Hi,
I have a Kendo Scheduler which has Editable=false applied as it's for viewing only. However, if you double-click on a date, I'd like the site to navigate to a separate page specific to that date to display a summary of what's happening on that date. Therefore, I have bound a double-click event to each cell for this event - however, I don't have access to the date selected to pass to my next page.
$('div.k-event-template').parent().dblclick(function () {
alert("Handler for .dblclick() called.");
});
What's the best way of achieving this?
Thanks, Mark
I'm inserting a row into my grid, with a default ID of zero, and when I save it I'm setting the ID on the server.
I now want to refresh the grid so it includes the new ID value, rather than the default, so that I can re-edit the row (if it stays with a zero ID it tries adding it as a new row again).
I can achieve this by adding grid.dataSource.read(); to the requestEnd event, but this refreshes the whole grid, moving the new row to its correct position depending on sort order (which might be on a different page). I want the display to remain the same, with the new row at the top.
I've found a lot of similar posts, and the solution usually offered is that if the new row is returned from the Post method is the same format as the Get method returns, then everything should refresh automagically.
I can't get this working though. Perhaps the two methods don't return compatible results?
My Get method returns IHttpActionResult
return Ok<PageResult<CurrencyViewModel>>(result)
but my Post method returns Task<IHttpActionResult>
return Ok(currency)
Any ideas? I can post more source code if needed but don't want to confuse matters by posting lots of irrelevant stuff!
Thanks
Hi,
The kendo.data.Model editable function returns true if a field is not defined. Shouldn't it return false for undefined fields?
<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>Kendo UI Snippet</title> <link rel="stylesheet" href="http://cdn.kendostatic.com/2015.2.624/styles/kendo.common.min.css"> <link rel="stylesheet" href="http://cdn.kendostatic.com/2015.2.624/styles/kendo.rtl.min.css"> <link rel="stylesheet" href="http://cdn.kendostatic.com/2015.2.624/styles/kendo.default.min.css"> <link rel="stylesheet" href="http://cdn.kendostatic.com/2015.2.624/styles/kendo.dataviz.min.css"> <link rel="stylesheet" href="http://cdn.kendostatic.com/2015.2.624/styles/kendo.dataviz.default.min.css"> <link rel="stylesheet" href="http://cdn.kendostatic.com/2015.2.624/styles/kendo.mobile.all.min.css"> <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script src="http://cdn.kendostatic.com/2015.2.624/js/kendo.all.min.js"></script></head><body> <script>var Product = kendo.data.Model.define({ fields: { id: { editable: false }, name: { editable: true } }});var product = new Product();alert(product.editable("id")); // outputs "false"alert(product.editable("name")); // outputs "true"alert(product.editable("name2")); // outputs "true", why???</script></body></html>
Regards,
Laszlo