Hi everyone
I have been working with the Telerik AJAX controls for the past year or two, but now I am busy building my first Kendo MVC application.
I have built a grid that has a check box, but how can I "post" my model to a Action in my controller so that I can loop through each selected item and process?
Here is the grid, but I am confused as to how I would post my model to process the selected items?
I have been working with the Telerik AJAX controls for the past year or two, but now I am busy building my first Kendo MVC application.
I have built a grid that has a check box, but how can I "post" my model to a Action in my controller so that I can loop through each selected item and process?
Here is the grid, but I am confused as to how I would post my model to process the selected items?
<
div
class
=
"row"
>
@(Html.Kendo().Grid<
WishListModel
>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(c => c.IsSelected).ClientTemplate("<
input
type
=
'checkbox'
/>");
columns.Bound(c => c.Column1);
columns.Bound(c => c.Column2);
columns.Bound(c => c.Date).Format("{0:yyyy-MM-dd}");
})
.HtmlAttributes(new { style = "height: 380px;" })
.Scrollable()
.Groupable()
.Filterable()
.Sortable()
.ColumnMenu()
.Selectable(s => s.Mode(GridSelectionMode.Multiple))
.Pageable(pageable => pageable
.Refresh(true)
.PageSizes(true)
.ButtonCount(5))
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("WishList_Read", "Public"))
.Model(model => model.Id(wl => wl.WishListId))
)
)
</
div
>