AllenFang / AllenFang/react-bootstrap-table

Enabling and disabling of the sorting functionality via remote doesn't work in our case

Open
#1,826 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.2k
Forks
761
PR merge metrics
No merged PRs in 30d

Description

Hey there,

we are trying to disable the initial sorting when a new rendering is triggered. We are using the remote functionality and want to switch the remoteObj.sort value depending on a field in the state. Wether the value of remoteObj.sort is true or false the sorting won't work and is continuously disabled.

remote(remoteObj) {
remoteObj.pagination = false; -> work's just fine
remoteObj.filter = true; -> work's just fine
//remoteObj.sort = true; -> sorting is disabled
//remoteObj.sort = false; -> sorting is disabled
remoteObj.sort = this.state.noSorting; -> sorting is disabled
return remoteObj;
}

Best regards.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.