ExtJS4 gridPanel数据未显示 [英] ExtJS4 gridPanel data not showing

查看:337
本文介绍了ExtJS4 gridPanel数据未显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使这个非常简单的jsfiddle向你展示了这种异常行为。



修正代码



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


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!

解决方案

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/

这篇关于ExtJS4 gridPanel数据未显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆