Skip to content

Commit 00e6707

Browse files
committed
[add] what's new for v9.1.2, dropPosition parameter for drag-related events
1 parent 296bdc0 commit 00e6707

File tree

4 files changed

+26
-6
lines changed

4 files changed

+26
-6
lines changed

docs/grid/api/grid_afterrowdrop_event.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: You can explore the afterRowDrop event of Grid in the documentation
88

99
@short: fires before the user has finished dragging a row but after the mouse button is released
1010

11-
@signature: {'afterRowDrop: (data: object, event: MouseEvent) => void;'}
11+
@signature: {'afterRowDrop: (data: object, event: MouseEvent, dropPosition: "top" | "bottom" | "in") => void;'}
1212

1313
@params:
1414
The callback of the event is called with the following parameters:
@@ -18,9 +18,10 @@ The callback of the event is called with the following parameters:
1818
- `source: array` - an array with ids of dragged rows
1919
- `target: string | number` - the id of a potential target row
2020
- `event: MouseEvent` - a native HTML event object
21+
- `dropPosition: string` - defines the position of the dragged item dropping relative to the target item: "top" | "bottom" | "in" (the "in" value is used only for the TreeGrid mode)
2122

2223
@example:
23-
grid.events.on("afterRowDrop", (data, event) => {
24+
grid.events.on("afterRowDrop", (data, event, dropPosition) => {
2425
// your logic here
2526
});
2627

docs/grid/api/grid_beforerowdrop_event.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: You can explore the beforeRowDrop event of Grid in the documentatio
88

99
@short: fires before the user has finished dragging and released the mouse button over a target row
1010

11-
@signature: {'beforeRowDrop: (data: object, event: MouseEvent) => void | boolean;'}
11+
@signature: {'beforeRowDrop: (data: object, event: MouseEvent, dropPosition: "top" | "bottom" | "in") => void | boolean;'}
1212

1313
@params:
1414
The callback of the event is called with the following parameters:
@@ -17,12 +17,14 @@ The callback of the event is called with the following parameters:
1717
- `source: array` - an array with ids of dragged rows
1818
- `target: string | number` - the id of a potential target row
1919
- `event: MouseEvent` - a native HTML event object
20+
- `dropPosition: string` - defines the position of the dragged item dropping relative to the target item: "top" | "bottom" | "in" (the "in" value is used only for the TreeGrid mode)
21+
2022

2123
@returns:
2224
Return `false` to block the default action; otherwise, `true`.
2325

2426
@example:
25-
grid.events.on("beforeRowDrop", (data, event) => {
27+
grid.events.on("beforeRowDrop", (data, event, dropPosition) => {
2628
// your logic here
2729
return false;
2830
});

docs/grid/api/grid_dragrowin_event.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: You can explore the dragRowIn event of Grid in the documentation of
88

99
@short: fires when a row is dragged to another potential target
1010

11-
@signature: {'dragRowIn: (data: object, event: MouseEvent) => void;'}
11+
@signature: {'dragRowIn: (data: object, event: MouseEvent, dropPosition: "top" | "bottom" | "in") => void;'}
1212

1313
@params:
1414
The callback of the event is called with the following parameters:
@@ -18,9 +18,10 @@ The callback of the event is called with the following parameters:
1818
- `source: array` - an array with ids of dragged rows
1919
- `target: string | number` - the id of a potential target row
2020
- `event: MouseEvent` - a native HTML event object
21+
- `dropPosition: string` - defines the position of the dragged item dropping relative to the target item: "top" | "bottom" | "in" (the "in" value is used only for the TreeGrid mode)
2122

2223
@example:
23-
grid.events.on("dragRowIn", (data, event) => {
24+
grid.events.on("dragRowIn", (data, event, dropPosition) => {
2425
// your logic here
2526
});
2627

docs/whatsnew.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,22 @@ description: You can explore what's new in DHTMLX Suite and its release history
88

99
Before updating DHTMLX to the latest version, please check the [Migration to Newer Versions](migration.md) guide to avoid possible breakdowns.
1010

11+
## Version 9.2.1
12+
13+
Released on September 1, 2025
14+
15+
### Fixes
16+
17+
- DragManager. Incorrect determining of dragged items' ids while dragging multiple items
18+
- Form. The `beforeChange` event behavior in the Input and Textarea controls
19+
- Grid. The `BlockSelection` module behavior when using several Grids on a page
20+
- Grid. The issue with inserting data into inputFilter from the clipboard
21+
- Grid. The parameter that defines the dragged item's drop position relative to the target item is added for the callback of drag-related events
22+
- Grid. The problem with multiselection of rows outside the visible Grid area when the `dragMode` option is enabled
23+
- Grid. Displaying of boolean values in the grouped data
24+
- Grid. Processing of invalid data for columns with the `number` type
25+
- Grid. The processing of the grouped invalid data is improved
26+
1127
## Version 9.2
1228

1329
Released on July 15, 2025

0 commit comments

Comments
 (0)