-
26 Aug 2010 6:24 AM #1
[FIXED-202] grid rendering wrong xtype in colModel (auto columns broken)
[FIXED-202] grid rendering wrong xtype in colModel (auto columns broken)
In a effort to learn to use the designer I have attempted to implement one of the standard examples, Paging Grid, via the designer interface. I create a JsonStore which is correctly coded by the designer to produce the following code:
This code is correct. However, when designer maps the fields to the colModel I end up with the column xtype being "off by 1". The following code is what designer generates:Code:ExtForum = Ext.extend(Ext.data.JsonStore, { constructor: function(cfg) { cfg = cfg || {}; ExtForum.superclass.constructor.call(this, Ext.apply({ storeId: 'ExtForum', root: 'topics', idProperty: 'threadid', totalProperty: 'totalCount', remoteSort: true, fields: [ { name: 'title' }, { name: 'forumtitle' }, { name: 'forumid' }, { name: 'author' }, { name: 'replycount', type: 'int' }, { name: 'lastpost', type: 'date', dateFormat: 'timestamp' }, { name: 'lastposter' }, { name: 'excerpt' } ] }, cfg)); } }); new ExtForum();
The xtype order that should have been created is gridcolumn, gridcolumn, numbercolumn, datecolumn. Looks like an off by 1 error but could be a problem with my approach I guess. Regardless, the resulting output is wrong. I have attached the .xds that will reproduce the error.Code:columns: [ { xtype: 'gridcolumn', dataIndex: 'title', header: 'Title', sortable: true, width: 420, editable: false, id: 'topic' }, { xtype: 'numbercolumn', dataIndex: 'author', header: 'Author', sortable: true, width: 100, align: 'right', hidden: true }, { xtype: 'datecolumn', dataIndex: 'replycount', header: 'Replies', sortable: true, width: 70, align: 'right', editable: false }, { xtype: 'gridcolumn', header: 'Last Post', sortable: true, width: 150, dataIndex: 'lastpost', id: 'last' } ]
Any insight or suggestions much appreciated,
Dan
-
30 Aug 2010 6:34 AM #2Sencha - Desktop Packager Dev Team
- Join Date
- Mar 2007
- Location
- Baltimore, MD.
- Posts
- 1,745
- Vote Rating
- 5
Thanks Dan, the Auto Columns feature is a known bug and is already an open ticket #202. Thanks for reporting this.
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[FIXED-202] Cannot use "Auto Columns" feature after storeId has been changed
By deganii in forum Ext Designer: BugsReplies: 6Last Post: 18 Aug 2010, 9:24 AM -
[FIXED-86] Box Component xtype wrong
By dr1811 in forum Ext Designer: BugsReplies: 2Last Post: 2 Apr 2010, 6:14 PM -
What am I doing wrong? (xtype grid)
By janhov in forum Ext 2.x: Help & DiscussionReplies: 8Last Post: 13 Mar 2009, 5:29 AM -
[FIXED][3.x] Grid Column Drag this.grid.colModel.isLocked is not a function
By mjlecomte in forum Ext 2.x: BugsReplies: 7Last Post: 15 Feb 2009, 7:15 PM


Reply With Quote