I have changed the code to more of what the final code will be but I still need help. The grid loads its data from a stored procedure. However, the autocomplete will get its lookup data from a different stored procedure. When I click in the autocomplete cell no results are found but the stored procedure is returning results.
<
div
id
=
"employeeTimecard"
>
@(Html.Kendo().Grid<
Timecard.Models.TimecardViewModel
>()
.Name("timecard")
.ToolBar(toolbar => toolbar.Create().Text("ADD").HtmlAttributes(new { title = "Add employee" }))
.Editable(editable => editable.Mode(GridEditMode.InCell))
.Columns(columns =>
{
columns.Bound(p => p.Job).Filterable(false).Sortable(false).Width(115).EditorTemplateName("_InCellAutoCompleteEditor").Title("Job");
columns.Bound(p => p.Task).Filterable(false).Sortable(false).Width(100);
columns.Bound(p => p.TaskName).Filterable(false).Sortable(false).Width(150);
columns.Bound(p => p.SubTask).Filterable(false).Sortable(false).Width(100);
columns.Bound(p => p.SubTaskCompDate).Filterable(false).Sortable(false).Width(75);
columns.Bound(p => p.TravelPay).Filterable(false).Sortable(false).Width(75).Title("Travel Pay (Total)");
columns.Bound(p => p.SpecialPayRate).Filterable(false).Sortable(false).Width(75);
columns.Bound(p => p.Comment).Filterable(false).Sortable(false).Width(150);
columns.Bound(p => p.MonST).Filterable(false).Sortable(false).Format("{0:n1}").Title("Mon ST").Width(40);
columns.Bound(p => p.MonOT).Filterable(false).Sortable(false).Width(40);
columns.Bound(p => p.MonDT).Filterable(false).Sortable(false).Width(40);
columns.Bound(p => p.TueST).Filterable(false).Sortable(false).Width(40);
columns.Bound(p => p.TueOT).Filterable(false).Sortable(false).Width(40);
columns.Bound(p => p.TueDT).Filterable(false).Sortable(false).Width(40);
columns.Bound(p => p.WedST).Filterable(false).Sortable(false).Width(40);
columns.Bound(p => p.WedOT).Filterable(false).Sortable(false).Width(40);
columns.Bound(p => p.WedDT).Filterable(false).Sortable(false).Width(40);
columns.Bound(p => p.ThuST).Filterable(false).Sortable(false).Width(40);
columns.Bound(p => p.ThuOT).Filterable(false).Sortable(false).Width(40);
columns.Bound(p => p.ThuDT).Filterable(false).Sortable(false).Width(40);
columns.Bound(p => p.FriST).Filterable(false).Sortable(false).Width(40);
columns.Bound(p => p.FriOT).Filterable(false).Sortable(false).Width(40);
columns.Bound(p => p.FriDT).Filterable(false).Sortable(false).Width(40);
columns.Bound(p => p.SatST).Filterable(false).Sortable(false).Hidden(true).Width(40);
columns.Bound(p => p.SatOT).Filterable(false).Sortable(false).Width(40);
columns.Bound(p => p.SatDT).Filterable(false).Sortable(false).Width(40);
columns.Bound(p => p.SunST).Filterable(false).Sortable(false).Hidden(true).Width(40);
columns.Bound(p => p.SunOT).Filterable(false).Sortable(false).Hidden(true).Width(40);
columns.Bound(p => p.SunDT).Filterable(false).Sortable(false).Width(40);
})
.Sortable()
.Scrollable()
.Filterable()
.Selectable(selectable => selectable
.Mode(GridSelectionMode.Single)
.Type(GridSelectionType.Cell)
)
.HtmlAttributes(new { style = "height:650px;width:1580px;" })
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(100)
.Model(model => model.Id(p => p.EmployeeCode))
.Read(read => read.Action("Load", "Timecard"))
)
)
</
div
>