MVC grid checkbox issue

1 posts, 0 answers
  1. Dayana Maliyakal
    Dayana Maliyakal avatar
    27 posts
    Member since:
    Jan 2010

    Posted 20 Mar 2014 Link to this post

    Hi,
    I have the following grid.On submit button click I want to get the selected row datas.How this possible?

    <%Html.Telerik().Grid(model.test())
    .Name("rgItems")
    .DataKeys(dataKeys => dataKeys.Add(model => model.temID))
    .Columns(columns =>
    {
    columns.Template(model =>
    {

    %>
    <input type='checkbox' id='chkSelect'/>

    <%
    })
    .Title("<input type='checkbox' id='chkSelectAll'/>")//To get clientselect column format
    .Width("5%")
    .HeaderHtmlAttributes(new { Style = "width:5%;" })

    .ClientTemplate("<input type='checkbox' id='chkSelect'/>");

     
    columns.Bound(model => model.Name)
    .HeaderHtmlAttributes(new { Style = "width:20%" })
    .Title("Project")
    .Width("20%");
    .HtmlAttributes(new { style = "width:99.8%" })
    .Sortable()
    .Selectable()
    .Filterable()
    .Pageable(pager => pager.PageSize(30).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.Numeric))



    .Render();

    %>
Back to Top