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

NestedViewTemplate

1 Answer 43 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Loyal User
Top achievements
Rank 1
Loyal User asked on 10 Jul 2012, 11:59 AM
hi all ..
i've radgrid with NestedViewTemplate ,
in NestedViewTemplate i've button with server side function "OnClick" ..
my question is ; how can i get the current parent selected row (expanded row) from server side ???


thanks in advance ..

1 Answer, 1 is accepted

Sort by
0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 10 Jul 2012, 01:28 PM
Hello,

protected void Button1_OnClick(object sender, EventArgs e)
  {
      GridDataItem item = ((sender as Button).NamingContainer as GridNestedViewItem).ParentItem as GridDataItem;
      // Item is your parent row
  }


Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Loyal User
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or