This is a migrated thread and some comments may be shown as answers.

MVC grid checkbox issue

0 Answers 48 Views
AJAX and Web 2.0
This is a migrated thread and some comments may be shown as answers.
Dayana Maliyakal
Top achievements
Rank 1
Dayana Maliyakal asked on 20 Mar 2014, 12:04 PM
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();

%>

No answers yet. Maybe you can help?

Tags
AJAX and Web 2.0
Asked by
Dayana Maliyakal
Top achievements
Rank 1
Share this question
or