Closed ricardo-guimaraes-tcepr closed 7 months ago
select event.row!.setChecked(true); stateManager.notifyListeners();
unselect event.row!.setChecked(false); stateManager.notifyListeners();
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Hi, I need some help to know how to select a row by line of code. I have tried this without success:
Using currentSelectingRows stateManager.currentSelectingRows.clear(); stateManager.currentSelectingRows.add(rendererContext.row);
Using toggleSelectingRow stateManager.toggleSelectingRow(currentRowkr, notify: true);
Using setCurrentSelectingRowsByRange stateManager.setCurrentSelectingRowsByRange(currentRowkr, currentRowkr);
My PlutoGrid definition: PlutoGrid( mode: PlutoGridMode.selectWithOneTap, columns: columns, rows: rowsDados, onSelected: (event) { currentRowkr = event.rowIdx ?? -1; }, onLoaded: (PlutoGridOnLoadedEvent event) { stateManager = event.stateManager; stateManager .setConfiguration( stateManager.configuration.copyWith(localeText: const PlutoGridLocaleText.brazilianPortuguese(), columnSize: PlutoGridColumnSizeConfig( autoSizeMode: PlutoAutoSizeMode.none))); stateManager.setSelectingMode(PlutoGridSelectingMode.row);
}, )