File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1065,6 +1065,7 @@ angular.module('ui.grid')
1065
1065
* @methodOf ui.grid.class:Grid
1066
1066
* @description creates or removes GridRow objects from the newRawData array. Calls each registered
1067
1067
* rowBuilder to further process the row
1068
+ * @param {array } newRawData Modified set of data
1068
1069
*
1069
1070
* This method aims to achieve three things:
1070
1071
* 1. the resulting rows array is in the same order as the newRawData, we'll call
@@ -1088,6 +1089,16 @@ angular.module('ui.grid')
1088
1089
*
1089
1090
* Rows are identified using the hashKey if configured. If not configured, then rows
1090
1091
* are identified using the gridOptions.rowEquality function
1092
+ *
1093
+ * This method is useful when trying to select rows immediately after loading data without
1094
+ * using a $timeout/$interval, e.g.:
1095
+ *
1096
+ * $scope.gridOptions.data = someData;
1097
+ * $scope.gridApi.grid.modifyRows($scope.gridOptions.data);
1098
+ * $scope.gridApi.selection.selectRow($scope.gridOptions.data[0]);
1099
+ *
1100
+ * OR to persist row selection after data update (e.g. rows selected, new data loaded, want
1101
+ * originally selected rows to be re-selected))
1091
1102
*/
1092
1103
Grid . prototype . modifyRows = function modifyRows ( newRawData ) {
1093
1104
var self = this ;
You can’t perform that action at this time.
0 commit comments