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

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

0 Answers 91 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Narsa
Top achievements
Rank 1
Narsa asked on 25 May 2017, 11:59 AM

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.

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Narsa
Top achievements
Rank 1
Share this question
or