i am trying to send model data from a form to the controller through kendo ui grid. I have yet to find any help on this.
- Can i just serilize the form data and send it as a paramater?
Here is my grid code,
enter@(Html.Kendo().Grid<LookupGridResults>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.FirstName).Width(225);
columns.Bound(p => p.LastName).Width(225);
columns.Bound(p => p.City).Width(225);
columns.Bound(p => p.County).Width(225);
columns.Bound(p => p.State).Width(225);
columns.Bound(p => p.Zip).Width(225);
})
.Pageable()
.Sortable()
.Scrollable()
.HtmlAttributes(new { style = "height:550px;" })
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(50)
.ServerOperation(true)
.Read(read => read.Action("ReadLeads", "LeadsManagement"))
)
)
I want to try to do this as an ajx call to the controller if possible.