loadData method
Parse CSV or JSON bytes and load them into the grid.
Implementation
Future<LoadDataResult> loadData(
List<int> data, {
LoadDataOptions? options,
}) async {
final request = LoadDataRequest()
..gridId = _gridId
..data = data;
if (options != null) {
request.options = options;
}
final result = await VolvoxGridService.LoadData(request);
if (result.status != LoadDataStatus.LOAD_FAILED) {
await _applyDefaultEditorsForInferredColumns(result.inferredColumns);
}
notifyListeners();
return result;
}