ods-component-lib 1.18.68 → 1.18.70

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.
@@ -16674,6 +16674,7 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
16674
16674
  };
16675
16675
  colItem.headerCellRender = headerCellRenderr;
16676
16676
  }
16677
+ if (props.isServerSide) colItem.calculateSortValue = String("dummyFieldForPreventClientSideSorting");
16677
16678
  return colItem;
16678
16679
  });
16679
16680
  columns.current = newColumns;
@@ -16698,9 +16699,11 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
16698
16699
  var onOptionChanged = props.onOptionChanged;
16699
16700
  if (onOptionChanged) {
16700
16701
  var dataGridInstance = gridRef.current.instance;
16701
- var sortingState = dataGridInstance.getVisibleColumns().map(function (column, index) {
16702
+ var sortingState = dataGridInstance.getVisibleColumns().filter(function (p) {
16703
+ return !p.command;
16704
+ }).map(function (column, index) {
16702
16705
  return {
16703
- index: index - 1,
16706
+ index: index,
16704
16707
  dataField: column.dataField,
16705
16708
  sortOrder: column.sortOrder
16706
16709
  };