我无法启用列的大小调整。它允许调整任何一列的大小,然后禁用该属性。它甚至不显示col-resize光标。 以下是代码......
grid = new Grid<PolicyRowInfo>(store, cm) {
@Override
protected void onAfterFirstAttach() {
super.onAfterFirstAttach();
Scheduler.get().scheduleDeferred(new ScheduledCommand() {
@Override
public void execute() {
loader.load();
}
});
}
};
grid.getView().setForceFit(true);
grid.setLoader(loader);
grid.setColumnReordering(true);
ScrollingDragSource dragSource = new ScrollingDragSource(grid);
dragSource.setGroup("top");
panel = new FramedPanel();
panel.setHeadingText("Header");
panel.setCollapsible(true);
panel.setAnimCollapse(true);
panel.setSize("100%", "350px");
panel.addStyleName("margin-10");
panel.setButtonAlign(BoxLayoutPack.CENTER);