Rad Grid Get Control Type of Control Inside Grid Template Column at Client Side

1 posts, 0 answers
  1. Narsa
    Narsa avatar
    1 posts
    Member since:
    May 2017

    Posted 25 May 2017 Link to this post

    Hi,

    if the column is a grid template column, how can I find the control that is inside the <Item Template> without actually knowing the name.

    I know that id can get server side 

    foreach (GridColumn column in RadGrid1.Columns)
        {
            if (column.GetType().Name == "GridTemplateColumn")
            {
                foreach (GridDataItem item in RadGrid1.MasterTableView.Items)
                {
                    foreach (Control control in item["IsTrue"].Controls)
                    {
                        string ColType = control.GetType().Name;
                        string Id = control.ID;
                        if (ColType.Equals("CheckBox"))
                        {
                            string value = ((CheckBox)(control)).Checked.ToString();
                        }
                    }
                }
            }
        }

     

    But How to write and get above code in the client side ?

    Thank you in advance.

Back to Top