X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..f562e4c6e5fac7bcb445985b99acbea4d706e6f0:/examples/grid/paging.js diff --git a/examples/grid/paging.js b/examples/grid/paging.js index 729e21cb..f9539f93 100644 --- a/examples/grid/paging.js +++ b/examples/grid/paging.js @@ -33,7 +33,7 @@ Ext.onReady(function(){ Ext.define('ForumThread', { extend: 'Ext.data.Model', fields: [ - 'title', 'forumtitle', 'forumid', 'author', + 'title', 'forumtitle', 'forumid', 'username', {name: 'replycount', type: 'int'}, {name: 'lastpost', mapping: 'lastpost', type: 'date', dateFormat: 'timestamp'}, 'lastposter', 'excerpt', 'threadid' @@ -76,7 +76,7 @@ Ext.onReady(function(){ } function renderLast(value, p, r) { - return Ext.String.format('{0}
by {1}', Ext.Date.dateFormat(value, 'M j, Y, g:i a'), r.data['lastposter']); + return Ext.String.format('{0}
by {1}', Ext.Date.dateFormat(value, 'M j, Y, g:i a'), r.get('lastposter')); } @@ -113,7 +113,7 @@ Ext.onReady(function(){ sortable: false },{ text: "Author", - dataIndex: 'author', + dataIndex: 'username', width: 100, hidden: true, sortable: true