Hello
The case is with sorting, grid component configured with allowSorting prop coz of ability to sort data by backend, but if passing sorted array of data into dataSource property - grid will sort data under the hood coz of state of column.
Is there any way to disable sorting under the hood but with sorting indicators on columns and ability to trigger sort action by clicking on columns?
As you can see on the screenshot we need to be able to sort columns, but sorting will be processed on the server side, so we are using remote data.const dataSourceConfig = useMemo(() => ({json: localData,enableSorting: false
}),
[localData]
);
<GridComponent
toolbarClick={onToolbarActionClick}
recordClick={onRowClick}
allowSorting
dataSource={dataSourceConfig}
sortSettings={sortSettings}
actionBegin={handleActionBegin}
columns={normalizedColumns}
toolbar={toolbar}
showColumnChooser
allowResizing
allowReordering
ref={setRef}
>
<Inject services={SERVICES} />
</GridComponent>