TableView icon indicating copy to clipboard operation
TableView copied to clipboard

Cell view type with hidding columns

Open S1LL opened this issue 5 years ago • 5 comments

Hi, I am still learning with this amazing library and I have a question.

I have a two column cell types (similar like in a demo). For example one type is on first and third column and second type is second and fourth column. When I hide the second column the columns shifts, but not the cell types. I have still the same cell types, because the getCellItemViewType method still returns the same indexes (the third column is now second, but method returns previous type).

I have solved it programatically by checking which columns are hidden, but its not very elegant solution. Is there some other way?

Thanks

S1LL avatar Dec 15 '19 18:12 S1LL

I am also having this issue. @S1LL can you share your solution? Thanks

Parlae avatar Feb 05 '20 08:02 Parlae

@Parlae Hey, my use case is kinda simple, I have second type only on 2nd and 3rd column, so Im checking in ViewModel which columns (1st to 3rd) are hidden and according to this Im changing the index. But I dont really like this solution, it would be kinda impossible for very complicated table. Also this solution is not 100% yet because of the second bug, which should be solved in the next release. But in theory this should work.

If the library somehow remebered column indexes, that would be ideal.

S1LL avatar Feb 05 '20 11:02 S1LL

Hi guys @Parlae, @S1LL

As soon as I got an opportunity, I will try to fix this problem. Probably I need to change the selection logic of the Tableview.

evrencoskun avatar Feb 06 '20 09:02 evrencoskun

Thank you @S1LL for your reply, and thank you @evrencoskun for your efforts

Parlae avatar Feb 07 '20 16:02 Parlae

I also have this problem. Please fix it asap

samanta-widjaja avatar Nov 20 '21 04:11 samanta-widjaja