Posted 05 Jun 2013 Link to this post
<
telerik:GridTemplateColumn
>
ItemTemplate
asp:CheckBox
ID
=
"CheckBox1"
runat
"server"
/>
</
..............................................................................................
asp:Button
"Button1"
Text
"Count"
OnClick
"Button1_Click"
protected
void
Button1_Click(
object
sender, EventArgs e)
{
foreach
(GridDataItem item
in
RadGrid1.MasterTableView.Items)
CheckBox chk = (CheckBox)item.FindControl(
);
if
(chk.Checked)
string
value = item[
"OrderID"
].Text;
// access the cell value using ColumnUniqueName
count++;
}
Response.Write(count);
Posted 06 Jun 2013 Link to this post
int
index = item.ItemIndex;
//access the selected checked checkbox rows
Response.Write(
"<script language='javascript'>alert('Index :"
+ index +
"');</script>"