Replies: 3 comments 6 replies
-
There's not any obvious method for updating the column labels AFAIK. What's your use case for updating only the column labels but not the rest of the table? Maybe this could be added as feature. |
Beta Was this translation helpful? Give feedback.
-
Hey Tom, I do actually need to update the rows as well as columns. The root issue I am investigating, which may be far easier to resolve, is that whenever I update the table: So yesterday I was starting to investigate why the column cursor was jumping back to column 0, and I came across my code: and I thought aha! I am deleting columns each time and re-adding them. It must be that which is causing column cursor jumping. However, I have just tried the same code but with static columns. Now I just do: And I still get the column cursor jumping back to column 0 issue. So it appears that it was not re-adding columns that is causing the issue at all. I'm very very new to Textualize so maybe missing something very obvious here, so:
There is nothing in my code to set the cursor position. The only table writing code I have is: Cheers, |
Beta Was this translation helpful? Give feedback.
-
This is my current solution:
So I just preserve the selected column number, clear the table, regenerate the columns (in my app this will always be the same number of columns, that never changes), and reinstate the column. The row generation comes a bit later in the code. This appears to work well and look smooth. Please let me know if this approach is likely to break anything :) Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hey Guys,
I can't find any obvious way to update column headings in a DataTable.
My headings are supposed to be dynamic but the only way I can currently find to update them is clear the whole table and start again, lol, which is obviously sub-optimal. Is it possible to update the column heading labels in situ?
loving textualize btw 💙
Beta Was this translation helpful? Give feedback.
All reactions