[英]After select the Column of row ,Grid is moving to the left side in EditorGridPanel of GWTEXT
我在gwtext中使用帶有EditorBoxSelectionModel的EditorGridPanel創建了一個網格。現在,使用以下代碼選擇行的列后,我將禁用復選框:
cbSelectionModel.addListener(new RowSelectionListener() {
public boolean doBeforeRowSelect(RowSelectionModel c, int rowIndex,
boolean keepExisting, Record record) {
if (!keepExisting) {
return false;
}
return true;
}
public void onRowDeselect(RowSelectionModel sm, int rowIndex,
Record record) {
}
public void onRowSelect(RowSelectionModel sm, int rowIndex,
Record record) {
}
public void onSelectionChange(RowSelectionModel sm) {
}
}
);
現在的問題是,如果我單擊遠離Grid復選框的列,那么每次網格都會向左移動。請建議我如何解決此問題。
我通過使用以下行解決了此問題:
checkInViolationGrid.getGrid().getView().setAutoFill(true);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.