-
7 Dec 2011 11:13 PM #1
Nested List: Object [object Object] has no method 'getAnimation'
Nested List: Object [object Object] has no method 'getAnimation'
REQUIRED INFORMATION
Ext version tested:- Version Number: 2.0.0.pr2
Browser versions tested against:- Chrome 15 (Mac)
DOCTYPE tested against:- html (5)
Description:- Nested List: Object [object Object] has no method 'getAnimation'.
Test Case:
View
ControllerPHP Code:Ext.define('app.view.AlbumNestedList', {
extend: 'Ext.NestedList',
config : {
layout:'fit',
fullscreen: true,
displayField: 'text',
store: null,
title: 'Yea'
}
});
Store:PHP Code:Ext.define('app.controller.AlbumTree', {
extend: 'Ext.app.Controller',
requires: ['app.store.Albums'],
stores: ['Albums'],
views: [
'AlbumNestedList'
],
init: function() {
this.view = this.getAlbumNestedListView().create();
this.albumsStore = this.getAlbumsStore();
this.albumsStore.load({
callback: this.onAlbumsLoad,
scope: this
});
this.callParent(arguments);
},
onAlbumsLoad: function() {
this.view.setStore(this.albumsStore);
}
});
Models:PHP Code:Ext.define('app.store.Albums', {
extend: 'Ext.data.TreeStore',
requires: 'app.model.Album',
model: 'app.model.Album',
autoLoad: false,
root: {},
proxy: {
type: 'ajax',
url: 'data/albums.json',
reader: {
type: 'json',
root: 'items',
defaultRootProperty: 'items'
}
}
});
Debugging already done:PHP Code:Ext.define('app.model.Album', {
extend: 'Ext.data.Model',
fields: ['id', 'name' ],
hasMany: [
{model: 'Image', name: 'images'}
]
});
Ext.define('app.model.Image', {
extend: 'Ext.data.Model',
fields: ['id', 'name' ],
belongsTo: 'Album'
});
Looks like this is a bug in:
Ext.dataview.NestedList.goToNode() method
Operating System:- OSX Lion
-
8 Dec 2011 10:07 AM #2
-
8 Dec 2011 12:27 PM #3Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,652
- Vote Rating
- 14
Thank you for the report.
-
9 Dec 2011 12:17 AM #4
-
11 Dec 2011 11:23 PM #5
-
12 Dec 2011 7:30 AM #6
It seems tab panel has the same bug
It seems tab panel has the same bug
rt
-
10 Jan 2012 10:58 AM #7
Could you provide us with some fake data too?
Does this just happen when you load it, or when you do something?Sencha Inc.
Robert Dougan - @rdougan
Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.
-
20 Jan 2012 7:59 AM #8
Hi,
I have the same problem when a launch my application with this code :
PHP Code:layout:'fit',
xtype:'nestedlist',
style:"border:1px solid red",
name:'categorie',
itemTpl:'{libelle}',
displayField: 'libelle',
height:400,
store: new Ext.data.TreeStore({id: 'NestedListStore', model: 'qbqm.model.quelVin',defaultRootProperty:'items',root: {text: ".",items : [{libelle: "Entrées & Hors d'Oeuvres"},{libelle: "Plats"},{libelle: "Fromages"},{libelle: "Desserts"},{libelle: "Favoris"},{libelle: "Historique"}]}})
chrome/2.0.0 pr3.PHP Code:Ext.define('qbqm.model.quelVin',{
extend:'Ext.data.Model',fields:[{name:'libelle',type:'string'}] })
regards
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-1202
in
2.0.


Reply With Quote