iam using the following code,
<telerik:RadGrid AllowSorting="True" ID="grdTrackRedemptions" AllowPaging="True"
runat="server" Skin="Office2007" AllowMultiRowEdit="false" GridLines="None" AutoGenerateColumns="False"
ShowDesignTimeSmartTagMessage="False" Width="800px" AllowMultiRowSelection="true"
PageSize="50" OnNeedDataSource="grdTrackRedemptions_NeedDataSource" OnPageIndexChanged="grdTrackRedemptions_PageIndexChanged"
OnSortCommand="grdTrackRedemptions_SortCommand" OnItemDataBound="grdTrackRedemptions_ItemDataBound">
<MasterTableView TableLayout="Auto" DataKeyNames="couponid,Id" CommandItemDisplay="Top"
ClientDataKeyNames="couponid,Id"> <Columns>
<telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn" HeaderText="Redeemed">
<ItemTemplate>
<asp:CheckBox ID="chk_redeemption" OnCheckedChanged="ToggleRowSelection" AutoPostBack="True"
runat="server"></asp:CheckBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="couponid" HeaderText="Cid" Display="False" SortExpression="couponid"
UniqueName="couponid">
<HeaderStyle Width="0px" />
</telerik:GridBoundColumn></Columns>
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
Each click on the check box, i need to get the value of row ( ie, couponid) ?
Post backing occours when clicking on the check box ( ToggleRowSelection fires)
protected void ToggleRowSelection(object sender, EventArgs e)
{
in this function how to get the grid's selected row value.
}
Thanks,