Have a look at
https://github.com/qooxdoo/qooxdoo/blob/21dfbf80636feb4caa95f9579c18ced3286d1843/framework/source/class/qx/ui/mobile/list/provider/Provider.js
Copy this class inside your project and extend it.
Line 100
Remove the clone part, and make a new item renderer every time with "new"
keyword.
Then it should work for your purpose...
But be aware to find a way to remove (dispose) all those items again on
re-rendering. Overwise you will get memory leaks if you render again and again.
Additionally... this way might cause memory leaks if you put a lot of items
inside. Maybe an amount about 200 items may be critical.
If you found a way, it would be great, if you would post your solution again.
Greetz Christopher
________________________________
Von: Tobias Roeder [roeder1...@googlemail.com]
Gesendet: Freitag, 7. Februar 2014 20:10
An: qooxdoo Development
Betreff: Re: [qooxdoo-devel] Listener problem on listitems in another list
Thanks for the reply.
So there is no way of working around this? I can select the items individually
( at least the color is changed when i click on it ) and i can make them react
to the "tap" event.. Any idea how to find out which item i selected using the
tap event ?
2014-02-07 15:46 GMT+01:00 Christopher Zündorf
<christopher.zuend...@1und1.de<mailto:christopher.zuend...@1und1.de>>:
The qx.Mobile List is not intended to contain interactive ui element itself. It
should just display informations, and make it possible to select one specific
items. Each list item is clone of the original renderer, and that is why you
are not able to click one of the child items inside a list item.
This is because of performance issues. As a list can contain a huge amount of
items, creating child widgets needs additional listeners etc. which may lead to
memory leaks.
I would listen to changeSelection event on a the list, open another page with
the child list, and then select another item out of this list.
This is also the typical mobile app navigation flow you may know from iOS.
We had a meeting 2 weeks ago about enhancing the list to be interactive, and
contain UI elements. Maybe we will enhance the list, till next release.
Greetz Christopher
Am 07.02.2014 um 14:41 schrieb Tobias Roeder
<roeder1...@googlemail.com<mailto:roeder1...@googlemail.com>>:
> Hey guys :)
>
> short overview of my problem:
>
> I have a navigationpage on qooxdoo mobile. On that page is a mobile.list.List
> with custom list items.. Each list item consists of a icon, title, subtitle,
> three more thumbnail pictures and another list!
> So each list item has another list with a random amount of items in it
> (between 2-5 mostly)
>
> Adding a "changeSelection" listener to the parent list items is no problem..
> But whenever I try to add a "changeSelection" listener to the child list
> items, nothing happens.. No error, no alert.. nothing.
>
> How exactly would I have to add such a listener?
> At the moment I do it like this:
>
> I set the entries of the parent list item with the .setDelegate() function.
> In that function I create my custom Item renderer and configure the Item to
> my needs.. I do the same for the child lists' items by retrieving the list
> widget on each list item of the parent list.
> On these list widgets I use setDelegate() again. The data is displayed just
> fine in the child list items.. But when I use the same method
> (item.getChildList().addListener(...); it doesn't work..
>
> Any insights?
>
> Sorry for the confusing explanation :)
>
> Thanks in advance!
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk_______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net<mailto:qooxdoo-devel@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net<mailto:qooxdoo-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel