OK, me again! Being up at 2am should at least lead to some results. We
can force the treevirtual to update the cell focus indicator by adding a
"dragmove" event. Here is the full code:
myVirtualTree.addEventListener("dragmove",function(event){
this._getPaneScrollerArr()[0]._focusCellAtPagePos(event.getPageX(),
event.getPageY());
},timesTree);
myVirtualTree.addEventListener("dragdrop",function(event){
// drag source
var sourceType = event.getDropDataTypes()[0]; // type of drag object
var sourceNode = event.getData(sourceType); // object dragged
// drag target
var currentRow =
this.getDataModel().getRowData(this._getPaneScrollerArr()[0].getFocusedRow());
if ( ! currentRow ) return;
var targetNode = currentRow[0];
// do stuff
}
But I think tree and table should have this behaviour built in without
the need of an additional "dragmove" event handler.
Cheers,
Christian
bibliograph schrieb:
> Hello, another issue -
>
> it seems like the cell/row focus indicator does not update during a drag
> session in treevirtual and table. If I drag something from one tree into
> the other, the light blue bar does not follow my cursor. This way, the
> solution in my last email does not work. Is this a bug or do I have to
> change some setting to allow a focus update?
>
> Thanks,
>
> Christian
>
> bibliograph schrieb:
>
>> Ok, found it out for treevirtual
>>
>> var targetNode =
>> this.getDataModel().getRowData(this._getPaneScrollerArr()[0].getFocusedRow())[0];
>>
>> phew, this was a bit hard to dig out and it's a bit verbose - could a
>> shorthand method be added to the API? Such as this.getHoveredNode() or
>> something? Thanks,
>>
>> Christian
>>
>>
>> bibliograph schrieb:
>>
>>
>>> Hi,
>>>
>>> I know that Derrell answered this question a while ago, but I cannot
>>> find it in the archives - how can get the cell or row that the cursor
>>> currently hovers over (for example, during a drag session) in the
>>> treevirtual and table widgets? I remember it has something to do with
>>> the pane scrollers...
>>>
>>> thanks!
>>>
>>> Christian
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by: Splunk Inc.
>>> Still grepping through log files to find problems? Stop.
>>> Now Search log events and configuration files using AJAX and a browser.
>>> Download your FREE copy of Splunk now >> http://get.splunk.com/
>>> _______________________________________________
>>> qooxdoo-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>
>>>
>>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems? Stop.
>> Now Search log events and configuration files using AJAX and a browser.
>> Download your FREE copy of Splunk now >> http://get.splunk.com/
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel