@progress/kendo-react-grid 5.13.0 → 5.13.1-dev.202304291450
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/dist/es/Grid.d.ts +1 -1
- package/dist/es/Grid.js +3 -3
- package/dist/es/package-metadata.js +1 -1
- package/dist/npm/Grid.d.ts +1 -1
- package/dist/npm/Grid.js +3 -3
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-react-grid.js +1 -1
- package/package.json +18 -18
package/dist/es/Grid.d.ts
CHANGED
|
@@ -177,7 +177,7 @@ export declare class Grid extends React.Component<GridProps> {
|
|
|
177
177
|
private handleIntersection;
|
|
178
178
|
private setCurrentOnTop;
|
|
179
179
|
/**
|
|
180
|
-
* Method to allow the scroll to be set to a specific row index.
|
|
180
|
+
* Method to allow the scroll to be set to a specific row index when the Grid is scrollable. It is zero based.
|
|
181
181
|
*
|
|
182
182
|
* @param options - Object, containing the rowIndex to which is going to be scrolled.
|
|
183
183
|
*/
|
package/dist/es/Grid.js
CHANGED
|
@@ -141,13 +141,13 @@ var Grid = /** @class */ (function (_super) {
|
|
|
141
141
|
var selectedRow = rowIndex < 1
|
|
142
142
|
? _this.element.querySelector("tbody > tr:nth-child(".concat(1, ")"))
|
|
143
143
|
: _this.element.querySelector("tbody > tr:nth-child(".concat(rowIndex + 1, ")"));
|
|
144
|
-
if (selectedRow) {
|
|
145
|
-
selectedRow.
|
|
144
|
+
if (selectedRow && _this.containerRef.current) {
|
|
145
|
+
_this.containerRef.current.scrollTop = selectedRow.offsetTop;
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
};
|
|
149
149
|
/**
|
|
150
|
-
* Method to allow the scroll to be set to a specific row index.
|
|
150
|
+
* Method to allow the scroll to be set to a specific row index when the Grid is scrollable. It is zero based.
|
|
151
151
|
*
|
|
152
152
|
* @param options - Object, containing the rowIndex to which is going to be scrolled.
|
|
153
153
|
*/
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-grid',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1682778679,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
11
11
|
};
|
package/dist/npm/Grid.d.ts
CHANGED
|
@@ -177,7 +177,7 @@ export declare class Grid extends React.Component<GridProps> {
|
|
|
177
177
|
private handleIntersection;
|
|
178
178
|
private setCurrentOnTop;
|
|
179
179
|
/**
|
|
180
|
-
* Method to allow the scroll to be set to a specific row index.
|
|
180
|
+
* Method to allow the scroll to be set to a specific row index when the Grid is scrollable. It is zero based.
|
|
181
181
|
*
|
|
182
182
|
* @param options - Object, containing the rowIndex to which is going to be scrolled.
|
|
183
183
|
*/
|
package/dist/npm/Grid.js
CHANGED
|
@@ -144,13 +144,13 @@ var Grid = /** @class */ (function (_super) {
|
|
|
144
144
|
var selectedRow = rowIndex < 1
|
|
145
145
|
? _this.element.querySelector("tbody > tr:nth-child(".concat(1, ")"))
|
|
146
146
|
: _this.element.querySelector("tbody > tr:nth-child(".concat(rowIndex + 1, ")"));
|
|
147
|
-
if (selectedRow) {
|
|
148
|
-
selectedRow.
|
|
147
|
+
if (selectedRow && _this.containerRef.current) {
|
|
148
|
+
_this.containerRef.current.scrollTop = selectedRow.offsetTop;
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
152
|
/**
|
|
153
|
-
* Method to allow the scroll to be set to a specific row index.
|
|
153
|
+
* Method to allow the scroll to be set to a specific row index when the Grid is scrollable. It is zero based.
|
|
154
154
|
*
|
|
155
155
|
* @param options - Object, containing the rowIndex to which is going to be scrolled.
|
|
156
156
|
*/
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-react-grid',
|
|
9
9
|
productName: 'KendoReact',
|
|
10
10
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1682778679,
|
|
12
12
|
version: '',
|
|
13
13
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
14
14
|
};
|