View Full Version : [FIXED][3.0RC3] ListView does not accept xtyped datastore config like Gridpanel does

1 Jul 2009, 7:51 PM
Ext version tested:
Ext 3.0 RC3Browser versions tested against:
FF3 (firebug 1.3.3 installed)Operating System:
WinXP ProDescription:
Ext.ListView throws error "g.on is not a function" etc if instantiated with xtyped data store (instead of using new Ext.data.XXXXStore)
This error does not present on GridPanelTest Case:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../resources/css/ext-all.css" rel="stylesheet">
<script src="../adapter/ext/ext-base.js"></script>
<script src="../ext-all.js"></script>
Ext.onReady(function() {
new Ext.Viewport({
layout: 'fit'
, items: [
xtype: 'listview'
, store: {
xtype: 'jsonstore'
, fields: ['title', 'cid']
, root: 'courses'
, url: ''
, data: {
courses: [
{title: 'MATH101: Introduction to Math', cid: 'math101'}
, {title: 'JAVA102: Introduction to Java Practicum', cid: 'java102'}
, {title: 'PHYS100: Fundamental Physics', cid: 'phys100'}
, {title: 'JAPAN104: Japanese Writing Systems', cid: 'japan104'}
, columns: [
{header: 'Course Name', dataIndex: 'title'}
, {header: 'Course Id', dataIndex: 'cid'}
</html>Steps to reproduce the problem:
Run the code in browser
Check error console (Firebug) for error message
Change xtype: 'listview' to xtype: 'grid' to see that GridPanel can accept the store config with no errorThe result that was expected:
No error

1 Jul 2009, 8:07 PM
Thanks for the report, fixed in SVN.

1 Jul 2009, 8:09 PM
Thanks for the report, fixed in SVN.
OMG that was blazing quick! You're the best! :D

1 Jul 2009, 8:13 PM
FYI the problem was in DataView and also existed in the charts as well. Now with all 3 you should be able to provide

a) xtype based stores
b) inline data