簡體   English   中英

選擇行的列后,網格將移到GWTEXT的EditorGridPanel的左側

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM