evrencoskun / TableView

TableView is a powerful Android library for displaying complex data structures and rendering tabular data composed of rows, columns and cells.
MIT License
3.14k stars 459 forks source link

problem with row columns when sorting #128

Closed farzadkamali20 closed 6 years ago

farzadkamali20 commented 6 years ago

hi friends There is a bug in sorting each column of the table. the row column must be fixed and always show the number of row table and not change with sorting each column. for example, when sorting the name column, the row column will be changed with name column.

example:

row name 1 james 2 danny 3 jon 4 tom

after name column sorting:

row name 2 danny 1 james 3 jon 4 tom

the row column should not be changed after sorting.

the right to left table is support? or not yet?

evrencoskun commented 6 years ago

Hi @farzadkamali20

The TableView does not know what data of the Row header corresponds to. That's why adapter wants the list.

For example, What if your TableView would like this; 24 0_7-bootstrap-table-checkbox ;

For that case, TableView should update each of row header.

I know, it's ugly but, you need to renew your row header list to your case.

In the future, there will be another adapter that doesn't need any row header list, in this way, TableView handle each of operations by itself.

farzadkamali20 commented 6 years ago

thanks.