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

[Solved] How to find the parent row of a nested grid on a drag and drop

2 Answers 124 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 2
Alex asked on 18 Dec 2009, 07:24 PM
What's the easiest way to find the parent row of a nested grid that you just dragged and dropped to (ie destination).

Here's what I have and it works fine but I know there's a simpler way because I remember seeing one like a year or so ago and just can't remember.

DirectCast(e.DestDataItem.Parent.Parent.Parent.Parent.Parent.Parent, Telerik.Web.UI.GridNestedViewItem).ParentItem

This does give me the parent row of a nested grid when I dragged and drop on the nested grid, but like I mentionned there's a simpler way and I just can't remember it.

Thanks

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 19 Dec 2009, 07:29 PM
Hello Alex,

I suppose you want to access the parent GridDataItem:
e.DestDataItem.OwnerTableView.ParentItem

Let me know whether this helps

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Alex
Top achievements
Rank 2
answered on 26 Jan 2010, 10:01 PM
Yes that is what I was looking for, I just love making my life harder then it needs to be.
Tags
Grid
Asked by
Alex
Top achievements
Rank 2
Answers by
Daniel
Telerik team
Alex
Top achievements
Rank 2
Share this question
or