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

Expanded DetailsTable

1 Answer 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Yashar
Top achievements
Rank 1
Yashar asked on 18 Aug 2008, 12:55 PM
Hi,

I have a hierachical radgrid, at the top level I have a list of agenda's and the level below that is the detail for the agenda. I've enabled the draggable rows and have some code behind to handle it, at the end of the RowDrop method I'm Rebinding the graph (to show the changes), the only problem is that it collapses the detailtable that was open previously, is there anyway I can keep it open?

thanks

1 Answer, 1 is accepted

Sort by
0
Yashar
Top achievements
Rank 1
answered on 18 Aug 2008, 01:21 PM

Oh it looks like I've managed to do it:

RadGrid

rgGrid = (RadGrid)sender;

int agendaIndex = Int32.Parse(e.DestDataItem["AgendaID"].Text);

foreach (GridDataItem item in rgGrid.Items)

{

if (Int32.Parse(item["AgendaID"].Text) == agendaIndex)

{

item.Expanded =

true;

}

}

Seems to be working ok in my RowDrop method

Tags
Grid
Asked by
Yashar
Top achievements
Rank 1
Answers by
Yashar
Top achievements
Rank 1
Share this question
or