AllenFang / AllenFang/react-bootstrap-table

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

Offen
#1,826 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
2.2k
Forks
761
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.