Hi,
I've got a hierarchichal RadGrid with one Detail Table. Lets call the items on the upper level "boxes" and the ones in the detail table "apples" - which is quite near reality in this case. (only we're not actually tracking apples ;-))
The user can move one or more different apples from one to another box via DragDrop.
This works fine when the apples are dropped on a specific box: Then I get a e.DestDataItem from the RadGrid1_RowDrop(object sender, GridDragDropEventArgs e) event, and I can figure out which box the apple(s) were placed in.
It also works fine, when there are already apples in a box, and some other apples are dropped on these rows. Then again I get a e.DestDataItem, and I can figure out, which box these apples are in, and I can add the dragged apples to the same box.
BUT: If apples are dropped either on the header rows of the DetailTable, or if a box is empty and they are dropped on the "No child records to display", then the e.DestDataItem is null. This sort of makes sense, but in this case I need a reference to the box, so I can add the dragged apples to this box.
I spent almost an hour now inspecting the GridDragDropEventArgs I get in this case, and I can nowhere find a reference. As soon as the DestDataItem is null, there seems to be no way of finding out which box the apples were dragged on.
The DestinationGrid and DestinationTableView Members are both not-null, so maybe I am missing something.
Any help is appreciated.
Best,
Christian
I've got a hierarchichal RadGrid with one Detail Table. Lets call the items on the upper level "boxes" and the ones in the detail table "apples" - which is quite near reality in this case. (only we're not actually tracking apples ;-))
The user can move one or more different apples from one to another box via DragDrop.
This works fine when the apples are dropped on a specific box: Then I get a e.DestDataItem from the RadGrid1_RowDrop(object sender, GridDragDropEventArgs e) event, and I can figure out which box the apple(s) were placed in.
It also works fine, when there are already apples in a box, and some other apples are dropped on these rows. Then again I get a e.DestDataItem, and I can figure out, which box these apples are in, and I can add the dragged apples to the same box.
BUT: If apples are dropped either on the header rows of the DetailTable, or if a box is empty and they are dropped on the "No child records to display", then the e.DestDataItem is null. This sort of makes sense, but in this case I need a reference to the box, so I can add the dragged apples to this box.
I spent almost an hour now inspecting the GridDragDropEventArgs I get in this case, and I can nowhere find a reference. As soon as the DestDataItem is null, there seems to be no way of finding out which box the apples were dragged on.
The DestinationGrid and DestinationTableView Members are both not-null, so maybe I am missing something.
Any help is appreciated.
Best,
Christian