PDA

View Full Version : Ext.List painted event not firing in preview 3



markstevens
24 Jan 2012, 4:50 AM
Hi,
In this thread it was recommended to use the painted event in lieu of the afterrender one:

http://www.sencha.com/forum/showthread.php?151316-Where-are-the-component-events

T (http://www.sencha.com/forum/showthread.php?151316-Where-are-the-component-events&)his works in the panel component. However, the event does not get fired in the Ext.List component in preview 3. Can this be fixed in the next release please?

If anyone knows of a workaround I would be really grateful. I have also tried the "show" event but that doesn't fire unless show() is called.
Thanks
Mark

dimitri.fedorov
24 Jan 2012, 4:54 AM
Preview 4 is already out, see here (http://www.sencha.com/forum/announcement.php?f=91&a=28).

markstevens
24 Jan 2012, 5:11 AM
Thanks Dimitri. I just tried preview 4 and the situation is the same. Here's the code I'm using:


initEvents: function () {
this.on('painted', function (comp, opts) {
alert('painted!');
});
}


It works on a panel but not on a list.
Using this.element.on doesn't work either.

steffenbrem
30 Jun 2012, 4:04 AM
I got the same problem, painted event is never called or fired! I need to have some code running every time the Ext.List comes visible on the screen. Initialize etc. are not the solution, they only get fired once.

Does anyone know why the painted event is not working on a list?


Steffen