View Full Version : [INFOREQ] Ext.ux.DataViewTransition Bug (el is null)

21 May 2010, 12:11 AM
Hi guys,
I updated yesterday my Aral (http://www.extjs.com/forum/showthread.php?88691-Aral-Web-Desktop&highlight=aral) application from 3.0.0 to 3.2.1 Ext version and i'm trying to using DataViewTransitions in my Aral DiskManager (http://www.extjs.com/forum/showthread.php?89507-Ext.ux.FileView-Tell-me-what-you-think&highlight=aral)module.
Unfortunally i'm having a trouble and I've got an application crash.
the following line returns me el = null.

var el = parentEl.child("#" + this.dataviewID + "-" + calcItem.get('id'));I've called some console.log debugging the DataViewTransition and i see that:

this.dataviewID = 'fileview'
calcItem.get('id') IS OK (returns me what it wants)
so the problem is parentEl.child(....

Does someone got the some issue, or there's a way to fix it?


Jamie Avins
21 May 2010, 10:29 AM
Can you provide more details on the code to produce this?

16 Jun 2010, 6:26 AM
Are you by any chance using a JsonStore rather than an array store as in the example code?

21 Jun 2010, 12:16 PM
I'm having the same issue. And yes, my dataview is using a JsonStore.

21 Jun 2010, 1:12 PM
Make sure you're not trying to run anything until the store has completed loading i.e. add a load event listener and run everything that transforms data or mucks around with anything from within that listener.

Might not help but I had the exact same error message and tracked it down to this - this is one of the things that most of us learners miss when looking at the examples; most of them use flat array stores and you don't have to worry about the data taking time to load.