This question is locked. New answers and comments are not allowed.
As .aspx page generates clientid for controls , how we can find control by server side id instead of generated id
For example
using Find.ById("txtName") instead of Find.ById("ctrl00_ctrl1_txtName").
We have developed following utility function for finding control using server side id but I would like using a Telerik API if exists
protected T FindByClinetId<T>(string id) where T:HtmlControl,new()
{
return Find.AllControls<T>().Where(x => (x.ID.EndsWith(id))).Single();
}
Thanks
Behtash
For example
using Find.ById("txtName") instead of Find.ById("ctrl00_ctrl1_txtName").
We have developed following utility function for finding control using server side id but I would like using a Telerik API if exists
protected T FindByClinetId<T>(string id) where T:HtmlControl,new()
{
return Find.AllControls<T>().Where(x => (x.ID.EndsWith(id))).Single();
}
Thanks
Behtash