2009-09-14 121 views
1

如何確定哪些Flex AdvancedDataGrid單元格 - 行和列索引 - 我剛纔放在哪裏? calculateDropIndex似乎給了我行,但我如何獲得列?拖放到Flex AdvancedDataGrid

回答

1

這將是一個僞代碼:

on drop: 
get x coordinate local to that grid when dropped 
loop over visible grid columns while adding their widths 
stop when total widths is greater than x coord 

而且應該有你的專欄。

這有幫助嗎?

+0

謝謝 - 幫了很多。 – Kwexi 2009-10-22 16:03:27