Hi,

if you are using map arrays to set model data, you should use the associated 
API to add and get row data [1]:

getRowData => getDataAsMapArray
addRows => addRowsAsMapArray

Here it goes to your playground example with small changes: 
http://tinyurl.com/o7uud9p

[1] 
http://demo.qooxdoo.org/current/apiviewer/#qx.ui.table.model.Simple~getRowDataAsMap!method_public

Gruß
Mustafa Sak

Applications & Integration

1&1 Internet AG
Ernst-Frey-Straße 10
DE-76135 Karlsruhe


-----Ursprüngliche Nachricht-----
Von: woprandi [mailto:william.opra...@gmail.com] 
Gesendet: Dienstag, 22. Juli 2014 11:23
An: qooxdoo-devel@lists.sourceforge.net
Betreff: [qooxdoo-devel] Drag & Drop problem

Hello,

I use a table and I want to implements Drag&Drop on it. I copied the code from 
Drag&Drop demo 
(http://demo.qooxdoo.org/current/demobrowser/#table~Table_Drag_And_Drop.html).
But I have a problem if I want to inject data and remember original maps 
(http://demo.qooxdoo.org/current/apiviewer/#qx.ui.table.model.Simple~setDataAsMapArray!method_public,
rememberMaps parameter set to true). And I need to keep the original map (which 
contains important data for me).
I wrote a simple example with the Playground (http://tinyurl.com/lf8ulrg).
If line 19 is commented (rememberMaps to false), Drag&Drop works nicely. But if 
you uncomment line 19 (rememberMaps to true), the dragged line is empty (try 
yourself).
I don't know if it's a bug or if the handle code need to be adapted.
So I'd like your help.
Thanks



--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Drag-Drop-problem-tp7585984.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and search 
up to 200,000 lines of code with a free copy of Black Duck Code Sight - the 
same software that powers the world's largest code search on Ohloh, the Black 
Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to