.Read( read => read.Action( "BindImages", "CatalogAdministration" ).Data( "bind_images" ) )function bind_images() { var grid = $("#GridInventoryItems").data("kendoGrid"); grid.select().each(function () { var dataItem = grid.dataItem($(this)); key = dataItem.InventoryItemId; }); return { inventoryItemId: key };}public JsonResult BindImages( int? InventoryItemId ){ JsonResult result = null; if( InventoryItemId.HasValue ) { result = Json( _GetImageViewModelRecords( InventoryItemId ) ); } return result;}I've been trying to add a dropdown list to a grid cell for a while now and I can get the dropdown to appear but whenever it changes it doesn't seem to actually save the value. When I choose a item the save event does end up firing but tabbing off of the field nothing has changed and the put doesn't get hit. the other fields with just regular text boxes seem to work just fine.
Grid Code:
@(Html.Kendo().Grid<FieldTimeEntry.Web.Repos.Testing.DtsCrewDetLabor>()
.Name("dtsLaborGrid")
.ToolBar(toolbar =>
{
toolbar.Create();
toolbar.Save();
})
.Columns(columns =>
{
columns.Command(command => command.Destroy()).Width(100);
columns.Bound(p => p.EmpName);
columns.Bound(p => p.EmpNo);
columns.Bound(p => p.EmpBillCode);
})
.Editable(editable => editable.Mode(GridEditMode.InCell))
.Pageable()
.Navigatable()
.Sortable()
.Scrollable()
.Events(e =>
{
e.Save("onSave");
e.DataBound("onDataBound");
})
.DataSource(dataSource => dataSource
.Ajax()
.Batch(true)
.PageSize(20)
.ServerOperation(false)
.AutoSync(true)
.Model(m =>
{
m.Field(f => f.GfEmpNo).DefaultValue(Model.GfEmpNo);
m.Field(f => f.CrewCode).DefaultValue(Model.CrewCode);
m.Id(p => p.SeqNo);
m.Field(f => f.EmpNo);
})
.Create(create =>
{
create.Action("Create", "CrewsApi");
create.Type(HttpVerbs.Post);
})
.Read(read =>
{
read.Action("Get", "CrewsAPI", new { id = Model.CrewCode });
read.Type(HttpVerbs.Get);
})
.Update(update =>
{
update.Action("Put", "CrewsAPI");
update.Type(HttpVerbs.Put);
})
.Destroy(destroy =>
{
destroy.Action("Delete", "CrewsAPI");
destroy.Type(HttpVerbs.Delete);
})
))
Editor Template:
@(Html.Kendo().DropDownList()
.Name("EmployeeId")
.DataTextField("NameAlpha")
.DataValueField("EmployeeId")
.DataTextField("NameAlpha")
.DataValueField("EmployeeId")
.Filter("contains")
.OptionLabel("Select Employee")
.AutoWidth(true)
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetEmployeesFiltered", "ReferenceData");
})
.ServerFiltering(true);
})
.Animation(a =>
{
a.Open(e =>
{
e.Fade(FadeDirection.In);
});
}))
JS Events:
var lastEditIndex;
function onSave(e) {
lastEditIndex.row = this.tbody.children().index(e.container.parent());
lastEditIndex.col = e.container.parent().children().index(e.container);
}
function onDataBound(e) {
var grid = this;
if (!$.isEmptyObject(lastEditIndex)) {
var cell = grid.tbody.children().eq(lastEditIndex.row).children().eq(lastEditIndex.col);
grid.current(cell);
grid.table.focus();
}
lastEditIndex = {};
}

Hello,
We used treelist which inside scrollable div in our MVC project. If we configured scrollable= false for treelist all column's width will mess up. If we used default setting (which is scrollable=true) the double scroll bar appeared which is not allowed in project. How to configured scroll bar only horizontally or vertically for Kendo UI treelist ?
Thanks
Hi ,
Hope you can help . I have a grid that is using SP via Enity Framework . If I do not using paging it pulls back all the records . However when I enable Paging it shows the correct number of pages but will only show the first 10 records ( or how many I set in PageSize() ) if I click on page 2, 3, , etc I see the same records .
This is my grid
@model IEnumerable<SchoolsDisruptionPortal.Models.spSchoolsUserID_Result>@{ ViewBag.Title = "ListSchoolsUserID";}<h2>@Resource.SchoolUser</h2>@(Html.Kendo().Grid(Model).Name("SchoolsUserID").Columns(c =>{ c.Bound(p => p.FriendlyName).Title(Resource.SchoolName).Width(450); c.Bound(p => p.Full_Name).Title(Resource.FullName).Width(300); c.Bound(p => p.Username).Title(Resource.UserName).Width(200);}).Pageable().ToolBar(tools => tools.Excel().Text(Resource.Export)).Excel(excel => excel.FileName(@Resource.SchoolUser + ".xlsx").AllPages(true)).DataSource ( d => d .Ajax() .PageSize(30) ))
I know it`s going to be something simple . It`s not a major requierment to my project but would make it look cleaner .
I'm currently evaluating the Grid control, and managed to build my grid using c# using the html helper.
My dataset has too many columns to put into one row and I trying to building a child grid using a client template to pass it the additional columns required.
My c# function contain the bones of the child grid based upon an ExpandoObject, along with a local json array that I would like to insert into the datasource, can you tell me how I am able to achieve this?
var jsonColumns = Newtonsoft.Json.JsonConvert.SerializeObject ( row );
var grid = html.Kendo ().Grid<System.Dynamic.ExpandoObject> ()
.Name ( "test" )
.ToClientTemplate();
I have a chart with a navigator which start and
end points are being cut off.
See attached photo
I have fixed the end points being cut off by adding .Panes(panes => panes.Add().Clip(false))
However when I now use the navigator it when zooming in the
lines in the chart are going outside the axis.
see attached photo.
Is there any way to fix both issues without affecting the other?
Thanks
It is possible with a "Normal" ReadAsync from the grid to provide more data without broken the DataSourceRequest response? I need to display some Azure User. Azure B2C has special way to achieve paging with NextLink token that I need to "store" in a hidden field. So the next time I receive a ReadAsync I can pass this NextLink and ask the correct page to the Azure API.
For now I can pass parameters from the view to the controller with the .data(javascript founction). But How I can get some custom parameter back in the RequestEnding function to store the info in hidden field?
Thanks
Let me lay out the desired functionality and see if y'all can help me.
I have a grid that uses inline editing. When a row is being edited, if the user then clicks the edit button on another row it switches the row edit, no matter if the current row has changed data or not. What I would like to happen is that the user cannot switch the editing row if it is dirty.
My initial thought was just use the BeforeEdit event and check if there was a currently edited row and preventDefault. Since the currently edited row switches before the BeforeEdit event is triggered this did not work.

Hi,
I'm trying to use autocomplete box for inline edit from gantt - grid. I'm not able to use the custom editor features available(like client template for column) that are available for grid.I would like to combine the autocomplete functionality with the inline edit functionality inside Grid. Is this possible and if so, how can I implement this?
Thanks