Re: [qooxdoo-devel] How to Clone Tree Data

2010-01-06 Thread Derrell Lipman
On Wed, Jan 6, 2010 at 02:16, panyasan wrote: > > Derrell Lipman wrote: > > > > The whole purpose of having bSelected in the data > > model is to allow the user to pre-select certain nodes. > > > > Since I am rewriting the SimpleTreeDataModel for databinding currently, I > wonder: doesn't this al

Re: [qooxdoo-devel] How to Clone Tree Data

2010-01-05 Thread panyasan
Derrell Lipman wrote: > > The whole purpose of having bSelected in the data > model is to allow the user to pre-select certain nodes. > Since I am rewriting the SimpleTreeDataModel for databinding currently, I wonder: doesn't this also apply for bOpened? Shouldn't a separate index be kept for

Re: [qooxdoo-devel] How to Clone Tree Data

2010-01-05 Thread Derrell Lipman
On Tue, Jan 5, 2010 at 09:51, wrote: > Thx, > > but is this behavior a bug or not? > I don't see any bug, although you might argue there is a missing feature. We could conceivably add a method to clone the data model of a tree, and that method would reset the selected flag of any nodes that were

Re: [qooxdoo-devel] How to Clone Tree Data

2010-01-05 Thread info
Thx, but is this behavior a bug or not? regards Sak > On Tue, Jan 5, 2010 at 05:32, wrote: > >> Hi Derrell, >> >> as you wished i wrote a little playground script, please select one >> branch >> at the left and thank click to copy button. After taht please click any >> branch at the right side.

Re: [qooxdoo-devel] How to Clone Tree Data

2010-01-05 Thread Derrell Lipman
On Tue, Jan 5, 2010 at 05:32, wrote: > Hi Derrell, > > as you wished i wrote a little playground script, please select one branch > at the left and thank click to copy button. After taht please click any > branch at the right side. > > You'll see what i ment. > Yes, I see what you meant. As I ha

Re: [qooxdoo-devel] How to Clone Tree Data

2010-01-05 Thread info
Hi Derrell, as you wished i wrote a little playground script, please select one branch at the left and thank click to copy button. After taht please click any branch at the right side. You'll see what i ment. regards Sak P.S. Like i wrote at last year, the tree Gui is broken under the column vi

Re: [qooxdoo-devel] How to Clone Tree Data

2010-01-04 Thread Derrell Lipman
On Mon, Jan 4, 2010 at 09:26, wrote: > That works! > All right, so that shows WHAT the issue is. Now the question is how to PROPERLY solve it. Why is bSelected true in some elements without having valid selections? That shouldn't be possible. Would you please provide a small test program (maybe

Re: [qooxdoo-devel] How to Clone Tree Data

2010-01-04 Thread info
That works! May bee some data necessary for the selection model wouldn't be dumped with .getData()? regards Sak > On Mon, Jan 4, 2010 at 09:03, wrote: > >> Hi Derell, >> >> thank you but i tried the same before but treeA.getSelectedNodes() has >> just an empty array [] >> >> Any other way? >> >

Re: [qooxdoo-devel] How to Clone Tree Data

2010-01-04 Thread Derrell Lipman
On Mon, Jan 4, 2010 at 09:03, wrote: > Hi Derell, > > thank you but i tried the same before but treeA.getSelectedNodes() has > just an empty array [] > > Any other way? > Are there actually any selected nodes in treeA? If so, then getSelectedNodes() had better not be an empty array. For testing

Re: [qooxdoo-devel] How to Clone Tree Data

2010-01-04 Thread info
Hi Derell, thank you but i tried the same before but treeA.getSelectedNodes() has just an empty array [] Any other way? regards Sak > On Mon, Jan 4, 2010 at 05:52, wrote: > >> >> Hi Derrell, >> >> i did like you told and it works, the both trees are separated from each >> other, but my problem

Re: [qooxdoo-devel] How to Clone Tree Data

2010-01-04 Thread Derrell Lipman
On Mon, Jan 4, 2010 at 05:52, wrote: > > Hi Derrell, > > i did like you told and it works, the both trees are separated from each > other, but my problem is, that the branch i selected in treeA is still > pseudo selected in treeB and cant be changed. I attached a gif to show you > what i ment. >

Re: [qooxdoo-devel] How to Clone Tree Data

2010-01-04 Thread info
Happy 2010 to all ladies and gentlemen! Hi Derrell, i did like you told and it works, the both trees are separated from each other, but my problem is, that the branch i selected in treeA is still pseudo selected in treeB and cant be changed. I attached a gif to show you what i ment. regards Sak

Re: [qooxdoo-devel] How to Clone Tree Data

2009-12-30 Thread Mustafa Sak
Thanks will try As soon as possible Regards Sak Von meinem iPhone gesendet Am 30.12.2009 um 18:21 schrieb Derrell Lipman >: On Wed, Dec 30, 2009 at 12:00, wrote: Hi devs, i want to "copy" data from treeA to treeB. But it seams that i'm making a reference betwien both virtual trees. tha

Re: [qooxdoo-devel] How to Clone Tree Data

2009-12-30 Thread Derrell Lipman
On Wed, Dec 30, 2009 at 12:00, wrote: > Hi devs, > > i want to "copy" data from treeA to treeB. But it seams that i'm making a > reference betwien both virtual trees. > > thats my code: > > var treeAData = treeA.getDataModel().getData(); > treeB.getDataModel().setData(treeAData); > > This would n

[qooxdoo-devel] How to Clone Tree Data

2009-12-30 Thread info
Hi devs, i want to "copy" data from treeA to treeB. But it seams that i'm making a reference betwien both virtual trees. thats my code: var treeAData = treeA.getDataModel().getData(); treeB.getDataModel().setData(treeAData); This would not bee a problem, but now both trees have a strange behavi