No data showing in dojox.grid.DataGrid

核能气质少年 提交于 2019-12-06 05:11:05

This one is definitely not your fault. Try changing the style on your table from:

style="width: 100%; height: 100%;"

to something like this:

style="width: 900px; height: 300px;"

I am not sure how it works inside, but I find the grid code is almost unusable because of stuff like this. Too many "features" for my liking.

I hope this works for you, it fixed it for me on version 1.2.3.

try removing the identifier, this is what I used, and it worked for me {items:[{"Title":"HelloTitle","Year":"2010","Producer":"foo"},{"Title":"HelloTitle2","Year":"2110","Producer":"f2232312164oo"}]}

I've just had the same crap happen to me in v1.7.1, and what fixed it for me was indeed giving the grid a fixed height like

#grid { height:500px !important; }

Without the !important it didn't work because, for some obscure reason, dojo kept assigning an inline style of 0px height to that element...

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