This is a migrated thread and some comments may be shown as answers.

How to Get FindControl Name in Telerik Radgrid

1 Answer 259 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jaya
Top achievements
Rank 1
Jaya asked on 19 Feb 2015, 06:25 AM
Hi

How to use Telerik Radgrid Find Control Dynamically
For ex: My Code This

 foreach (GridDataItem gr in TlkGrd.Items)
                    {
    CheckBox ChkStatus = gr.FindControl("ChkStatus ") as CheckBox;
}

here I already binded my grid but here when i click the button control i need how to without mention my Findcontrol i take my findcontrol property name 
i take dynamically how will do this

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 24 Feb 2015, 07:47 AM
Hello Jaya,

I'm afraid it is difficult to figure out your exact scenario. If you do not know the exact ID of the checkbox in order to use the FindControl method, you can traverse the Controls collection of the TableCell - gr["ColumnName"]:
http://www.telerik.com/help/aspnet-ajax/grid-accessing-cells-and-rows.html

Hope this helps.

Regards,
Eyup
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Jaya
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or