开发者

Dojo DataGrid and column resize

In Dojo's DataGrid, is it possible to make all columns resizable, while having the Grid automatically to 100% width? Specifying the column widths in percentages would be perfect, but this is not supported. I can have the DataGrid extend 100% only if columns are set to "auto" but in this case they are not resizable and this is probably not going to be sup开发者_如何学运维ported in the future, at least according to the official docs.

Do you have any suggestions?


My suggestion would be to checkout dojox.grid.EnhancedGrid. It does support percentages as a width unit and is based on dojox.grid.DataGrid. Also it has a plugin system so you can add more functionality when desired.


The new dojo component dgrid supports setting width of the whole table to auto and then widths of each column separately as percentages.

http://dojofoundation.org/packages/dgrid/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜