ExtJS4 gridPanel data not showing

有些话、适合烂在心里 提交于 2019-12-11 20:14:05

问题


I've made this very simple jsfiddle to show you this abnormal behaviour http://jsfiddle.net/mrgamer/GgUkE/2/

In my application i'm using the same methods i've written here, .loadRawData() on the store, cause .loadData() doesn't fire the 'load' event. I'm filling the store manually cause i've to filter some JSON data, compile it, and then insert to this store.

Anyway the problem doesn't seem to be in the store, since the Grid gets populated, you can click on 2 rows, but the data isn't displayed!


回答1:


Updated

There was a typo in the dataIndex properties in your columns. Required a capital 'I'

Grid Panel with Store example

http://docs.sencha.com/ext-js/4-1/#!/api/Ext.grid.Panel

Fixed code

http://jsfiddle.net/fw3Vc/1/



来源:https://stackoverflow.com/questions/12686546/extjs4-gridpanel-data-not-showing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!