소스 검색

Remove double negation (#11713)

"doesn't not" should be either "doesn't" or "does not".
tags/8.10.0.alpha1
eriklumme 4 년 전
부모
커밋
42fa4b0fee
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      documentation/advanced/advanced-dragndrop.asciidoc

+ 1
- 1
documentation/advanced/advanced-dragndrop.asciidoc 파일 보기

@@ -250,7 +250,7 @@ GridRowDragger<Task> gridRowDragger = new GridRowDragger<>(taskGrid);
grid.getColumns().stream().forEach(col -> col.setSortable(false));
----

The `GridRowDragger` uses the `DropMode.BETWEEN` by default. It doesn't not allow the user to drop data on top of a sorted grid's rows by automatically switching to `DropMode.ON_GRID` if the grid has been sorted by the user. This is because the shown drop location would not be correct due to the sorting. It is recommended that you disable the sorting for the grid, by using the `Column.setSortable` method (like above). By default, all columns are sortable when a in-memory data provider is used. If you allow the user to drop on top of a sorted grid's rows, you should scroll the dropped data to be visible with `grid.scrollToRow(index);` after drop for good UX - the `GridRowDragger` does not do this!
The `GridRowDragger` uses the `DropMode.BETWEEN` by default. It does not allow the user to drop data on top of a sorted grid's rows by automatically switching to `DropMode.ON_GRID` if the grid has been sorted by the user. This is because the shown drop location would not be correct due to the sorting. It is recommended that you disable the sorting for the grid, by using the `Column.setSortable` method (like above). By default, all columns are sortable when a in-memory data provider is used. If you allow the user to drop on top of a sorted grid's rows, you should scroll the dropped data to be visible with `grid.scrollToRow(index);` after drop for good UX - the `GridRowDragger` does not do this!

If you want to customize the setup for the grid as a drag source or drop target, you can access and customize the handlers with the `getGridDragSource()` and `getGridDropTarget()` methods.


Loading…
취소
저장