Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getCellItem value returns "t2com.evrencoskun.tableviewsample2.ui.tableview.model.CellModel@99a0259" #386

Open
luckylane opened this issue Jun 27, 2021 · 1 comment
Labels

Comments

@luckylane
Copy link

Describe the bug
I'm using "mTableView.getAdapter().getCellItem(0, row)" as per evrencoskun's comments try to get the value of the selected cell item on onCellLongPressed method but returns "t2com.evrencoskun.tableviewsample2.ui.tableview.model.CellModel@99a0259" instead of the cell value, could you some help with this issue? Really appreciated!

Tools:

  • TableView version: [0.8.9.4]
  • Android version: [11]
@luckylane luckylane added the bug label Jun 27, 2021
@alanjshort
Copy link

I too am stymied by this bug.
I have spent days and days trying to find work arounds - I can find no way to retrieve the value of a cell except for onCellClicked, which will return only the cell value that you click on, but if that's a non unique cell way down on a row, it's not much help. The workaround I adopted was to populate the row header with the same value as the first column, and make sure the first few columns contained unique values, Then, force the onCellClicked to always return column 0. This I then write into a database record and upon a timer, when the record gets populated, I search for the unique value. I populate this record in the same manner for a row header click. If the grid has been scrolled to the right, I get a different value, so On no-hit I check for the subsequent. etc. It works but it's a really ugly cludge. If ErvransCosKun would either fix his code, or provide a function to translate these CellModel@nnnnnnn records, we'd be in great shape, because ....getAdapter().getCellRowItems(row).toString(); returns exactly what we need - a comma delimited set of CellModel@nnnnnnn records pertaining to the entire row.
How come I don't see others complaining about this?
So the big question is:
Is there a way to translate the CellModel@nnnnnnn values into meaningful data?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants