Hi,
In our project many places we use RadControls. In that especially RadGrid is very frequent in use.
For finding the RadGrid Selected row details( columns ) , we used to write like this as below
This below radio button we placed in the ItemTemplate.
<telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn">
<ItemTemplate>
<asp:RadioButton ID="rboAccount" runat="server" AutoPostBack="true" GroupName="myGroup"
OnCheckedChanged="ToggleSelectedState" />
</ItemTemplate>
</telerik:GridTemplateColumn>
foreach (GridDataItem item in rgSearchResults.MasterTableView.Items)
{
RadioButton radio = (RadioButton)item.FindControl("rboAccount");
if (radio.Checked == true)
{
objCustomerContext.CustomerID = Convert.ToInt32(item.Cells[3].Text);
}
}
This works fine, but if maore records in the Grid, for finding the selected row details , it is taking more time. There is a lot of performance issue.
Can you please help me in this regard with a better performance oriented solution to find the values in the particular row.
Thank you,
Gupta