This content has been marked as final. Show 5 replies
Hi Voodoo Child, did you ever find a solution for this?
I am also looking to do the same thing. I want to drag an item into a datagrid row (not insert the item between rows). I have found several datagrid drag+drop examples on the web but none of them cover this topic.
Yes I did. You basically do part 1 said.
- Prevent the default behavior
- hide the black line indicator, i think it is hideDropFeedback maybe?
- Use calculateDropIndex to select the correct row, providing feedback to the user
- When the item is dropped, do what ever application specific stuff you need
Do need some code, if so i'll see if i can find it.
A quick example would be great. I'll see if I can get started though. Thanks!
I found an example. Once I did a web search for "calculateDropIndex" I found what I was looking for. Adobe's last example on working with trees shows the behavior I need. I just had to change the target type to a DataGrid instead of a Tree. Here is the link: