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

Finding combobox in hierarchical grid

1 Answer 60 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
SUBIN
Top achievements
Rank 1
SUBIN asked on 01 Feb 2013, 04:57 AM
Hello,
How to find combobox placed inside detailtable.In hierarchical grid
I want to find combobox in item created

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 01 Feb 2013, 05:11 AM
Hi,

Try setting the 'Name' property of the 'MasterTableView' and 'GridTableView' to distinguish between them in the ItemCreated event. Please check the code snippet.

C#:
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
    if (e.Item is GridDataItem && e.Item.OwnerTableView.Name == "DetailTableName")
    {
        GridDataItem itm = (GridDataItem)e.Item;
        RadComboBox lnl = (RadComboBox)itm.FindControl("RadComboBox1");
    }
}

Thanks,
Shinu.
Tags
General Discussions
Asked by
SUBIN
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or