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

Expand NestedViewTemplate when isInEditMode

1 Answer 25 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Juan Angel
Top achievements
Rank 1
Veteran
Juan Angel asked on 12 Oct 2008, 12:20 PM
       I want show NestedViewTemplate when row is in EditMode, but I don`t find a relationship between item in EditMode and NestedView asociated.

Thanks.



1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 13 Oct 2008, 04:21 AM
Hi Juan,

Try the following code snippet to achieve  the desired scenario.

CS:
  protected void RadGrid1_PreRender(object sender, EventArgs e) 
    { 
        foreach (GridDataItem item in RadGrid1.MasterTableView.Items) 
        { 
            if (item.Edit) 
            { 
                item.Expanded = true
            } 
        } 
   } 


Thanks
Shinu.
Tags
Grid
Asked by
Juan Angel
Top achievements
Rank 1
Veteran
Answers by
Shinu
Top achievements
Rank 2
Share this question
or