Seek expert help: extjs4.0 grid return value can be obtained but not display dat

Ext.onReady(function(){
// create the Data Store
var store = new Ext.data.JsonStore({
totalProperty: 'totalProperty',
root: 'root',
idProperty: 'threadid',
remoteSort: true,
fields: ['dwdah', 'dwsbh', 'khDate', 'khUserId','userDog','userId','userJb','userName','userPassword','waptel','xgDate','yxqQ','yxqZ'],
proxy: new Ext.data.HttpProxy({
url:'user.do?code=list',
method:'post'
})
});


var grid = new Ext.grid.GridPanel({
//width:850,
height:450,
title:'The system user information list',
store: store,
trackMouseOver:false,
disableSelection:true,
loadMask: true,
trackMouseOver:true,
loadMask: {msg:'Loading data, please wait...'},
// grid columns
columns:[{
header: 'No.',
dataIndex: 'dwdah',
width: 220,
sortable: true
},{
header: 'Full name',
dataIndex: 'dwsbh',
width: 100,
sortable: true
},{
header: 'The account opening date',
dataIndex: 'khDate',
width: 70,
align: 'right',
sortable: true
},{
header: 'Unit identification number',
dataIndex: 'khUserId',
width: 150,
sortable: true
},{
header: 'Unit identification number',
dataIndex: 'userDog',
width: 150,
sortable: true
},{
header: 'Unit identification number',
dataIndex: 'userId',
width: 150,
sortable: true
},{
header: 'Unit identification number',
dataIndex: 'userJb',
width: 150,
sortable: true
},{
header: 'Unit identification number',
dataIndex: 'userName',
width: 150,
sortable: true
},{
header: 'Unit identification number',
dataIndex: 'userPassword',
width: 150,
sortable: true
},{
header: 'Unit identification number',
dataIndex: 'waptel',
width: 150,
sortable: true
},{
header: 'Unit identification number',
dataIndex: 'xgDate',
width: 150,
sortable: true
},{
header: 'Unit identification number',
dataIndex: 'yxqQ',
width: 150,
sortable: true
},{
header: 'Unit identification number',
dataIndex: 'yxqZ',
width: 150,
sortable: true
}],
// paging bar on the bottom
bbar: new Ext.PagingToolbar({
pageSize:5,
store: store,
displayInfo: true,
displayMsg: 'Display the {0} data to the {1}, there are {2}',
emptyMsg: "There is no record",
items:[
'-', {
pressed: true,
enableToggle:true,
text: 'Show Preview',
cls: 'x-btn-text-icon details',
toggleHandler: function(btn, pressed){
var view = grid.getView();
view.showPreview = pressed;
view.refresh();
}
}]
})
});
// render it
grid.render('gridview');
// trigger the data store load
store.load({params:{start:0, limit:5}});
alert(store.getCount());

});

Started by Dominic at November 16, 2016 - 12:48 AM

Is it right? Head binding name wrong? This stuff is very disgusting

Posted by Benedict at November 30, 2016 - 1:02 AM

Can not find a problem going crazy

Posted by Dominic at December 09, 2016 - 1:34 AM

The JSON data you return put up have a look. It may be that the inside of the problem.

Posted by Nikita at December 19, 2016 - 2:24 AM



In accordance with your post code. The data source. Display the normal. There was no problem.

Posted by Nikita at December 31, 2016 - 3:12 AM

Problem solved, thank for you people, because the browser issues

Posted by Dominic at January 03, 2017 - 3:30 AM