[ Table Sort ] Table is sorted to default options when table is updated
See original GitHub issueHi @AllenFang,
I just saw this now. By default my table was sorted by name
in ascending order
and when I sort it by code
or other columns it will sort properly.
But when the table
is been updated
it will sort again by the default column name
.
By default i have an options inside my render:
render() {
let options = {
sortName: 'name',
sortOrder: 'asc'
}
return (
<BootstrapTable data={ items} options={ options } striped={true} hover={true} ref='rbsTable'>
...
</BootstrapTable>
)
What happen when I click on the gear icon
is I’ll fetch the sub menus
of each item
from the server
.
Issue Analytics
- State:
- Created 7 years ago
- Comments:21 (12 by maintainers)
Top Results From Across the Web
Sort data in a table - Microsoft Support
Sort the table. Select a cell within the data. Select Home > Sort & Filter. Sort&Filter. Or, select Data > Sort. DATA-Sort&Filter. Select...
Read more >SQL best practice to deal with default sort order - Stack Overflow
There is no default sort order. Even if the table has a clustered index, you are not guaranteed to get the results in...
Read more >Configuring the default Results Table sort order and summary ...
To add a new sort rule, click +Sort Rule. · To change the column assigned to a sort rule, click the arrow next...
Read more >Can you keep a sort on a column for a table?
You can sort the table wrapped with Table Filter macro in page edit mode by Ctrl+Click on table heading. After you save the...
Read more >Default ordering (sorting) - DataTables example
With DataTables you can alter the ordering characteristics of the table at initialisation time. Using the order initialisation parameter, you can set the ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@AllenFang cool! Thanks for this! I’ll try to implement this next week.
@markortiz, release on
v2.1.1
. Check it out 😃If the problems still remain, please tell me, thanks