Click here to Skip to main content
15,941,314 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using ASP.NET and C#. In telerik radgrid, I have mastertable and a detail table. A check box is in detailtable. I need to retrive the value of checked items to perform few operation

ASP.NET
<telerik:RadGrid ID="rgrd_InternalReqs"  runat="server" AccessKey="f" Width="100%" AllowFilteringByColumn="false" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="ODTS_InternalReq" PagerStyle-AlwaysVisible="true"
HorizontalAlign="Justify" AllowPaging="true" PageSize="15"   >
<mastertableview datasourceid="ODTS_InternalReq" datakeynames="IR_Nbr" clientdatakeynames="IR_Nbr,EmpFrm_Code">
<detailtables>
<telerik:GridTableView  runat="server" DataSourceID="ODTS_IntResProd" Width="100%" Caption="Product Details" DataKeyNames="DIr_seqNbr" HierarchyLoadMode="ServerOnDemand" Name="ProdInfo" PagerStyle-AlwaysVisible="false">
<parenttablerelation><telerik:gridrelationfields detailkeyfield="IR_Nbr" masterkeyfield="IR_Nbr" xmlns:telerik="#unknown" /></parenttablerelation>
<columns>
<telerik:gridtemplatecolumn uniquename="TemplateColumn" xmlns:telerik="#unknown">
<HeaderStyle Width="30px"></HeaderStyle>
<itemtemplate>
<asp:CheckBox ID="PrdCheckBox" AutoPostBack="False" runat="server"></itemtemplate>
</telerik:gridtemplatecolumn>
<telerik:gridboundcolumn datafield="IR_Nbr" uniquename="IR_Nbr" headerbuttontype="TextButton" visible="False" xmlns:telerik="#unknown"></telerik:gridboundcolumn>
<telerik:gridboundcolumn datafield="DIr_seqNbr" uniquename="DIr_seqNbr" headerbuttontype="TextButton" visible="False" xmlns:telerik="#unknown"></telerik:gridboundcolumn>
<telerik:gridboundcolumn datafield="IR_SeqCode" uniquename="IR_SeqCode" headerbuttontype="TextButton" headertext="#" xmlns:telerik="#unknown"></telerik:gridboundcolumn>
</columns>             
</detailtables>   

<telerik:gridboundcolumn datafield="IR_Nbr" headertext="Code" uniquename="IR_Nbr" headerbuttontype="TextButton" sortexpression="IR_Nbr" allowfiltering="false" xmlns:telerik="#unknown"></telerik:gridboundcolumn>
<telerik:gridboundcolumn datafield="IR_Date" headertext="Date" uniquename="IR_Date" headerbuttontype="TextButton" datatype="System.DateTime" sortexpression="IR_Date" xmlns:telerik="#unknown"></telerik:gridboundcolumn>
<telerik:gridboundcolumn datafield="IR_DueDate" headertext="Due Date" uniquename="IR_DueDate" headerbuttontype="TextButton" datatype="System.DateTime" dataformatstring="{0:dd/MM/yyyy}" sortexpression="IR_DueDate" xmlns:telerik="#unknown"></telerik:gridboundcolumn>

</mastertableview>
<clientsettings enablealternatingitems="false" allowkeyboardnavigation="true">
<Selecting AllowRowSelect="true" UseClientSelectColumnOnly="false" />
<clientevents />
</clientsettings>
Posted
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900