I am binding the grid with auto generated columns. and now I want to handle the row selected event.could anyone help on this. please find my view below
@{Html.Kendo().Grid(Model)
.Name("GridSam")
.DataSource(dataSource => dataSource
.Server()
.PageSize(20)
)
.Columns(c =>
{
c.AutoGenerate(column =>
{
//customize autogenereted column's settings
column.Width = "150px";
});
})
.Resizable(resizing => resizing.Columns(true))
.Scrollable(scrolling => scrolling.Enabled(true).Height(600))
.Sortable(sorting => sorting.Enabled(true))
.Groupable(grouping => grouping.Enabled(true))
.Filterable(filtering => filtering.Enabled(true))
.Reorderable(reorder => reorder.Columns(true))
.Pageable(Pageable => Pageable.Enabled(true).PreviousNext(true).Input(true).PageSizes(true))
.Render();
}
Regards,
Ravi.