Ever since I upgraded to Q1 2013, I have been unable to retrieve the checked rows in my grid. This exact code below worked fine before, but not does not retrieve the record ID's - any ideas why?
Here is the checkbox column in the grid (and yes, I have datakeynames="record,email" and clientdatakeynames="record":
Here is the code I to retrieve the record ID's on a button click:
Here is the checkbox column in the grid (and yes, I have datakeynames="record,email" and clientdatakeynames="record":
<telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn"> <HeaderTemplate> <asp:CheckBox ID="cl" onclick="return check_uncheck (this );" runat="server" /> </HeaderTemplate> <ItemTemplate> <asp:CheckBox ID="chk_record" onclick="return check_uncheck (this );" runat="server" /> </ItemTemplate> </telerik:GridTemplateColumn>Here is the code I to retrieve the record ID's on a button click:
Dim recArray As String = String.Empty For Each item As GridDataItem In grid_applications.MasterTableView.Items Dim chk As CheckBox = DirectCast(item.FindControl("chk_record"), CheckBox) If chk.Checked Then recArray += item("record").Text & "," Next