[英]Drag and drop onto Flex AdvancedDataGrid
How do I determine which Flex AdvancedDataGrid cell - row and column index - I've just dropped onto? 如何确定刚放到哪个Flex AdvancedDataGrid单元(行和列索引)上? calculateDropIndex seems to give me the row, but how do I get the column? computeDropIndex似乎给了我该行,但是如何获取该列呢?
It is going to be a pseudo code: 这将是一个伪代码:
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
and there should be your column. 并且应该有您的专栏。
Does that help? 有帮助吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.