ilan Expert Licensed User Longtime User Jul 15, 2016 #1 hi i am using this code to create a tableview: https://www.b4x.com/android/forum/threads/tableview-action-swipe-buttons.61111/ everything is also working fine. no when i want to refill the tableview its not working. i have a list where i store my items (only strings) and all changes that are made are made to the list after i have updated the list i want to view the result in a tableview so i clear the tableview and refill it but its not working. so what i did is intialize again the tableview and remove it from his parent and add it again to the panel and then it worked. but is this the right way to do? thanx .
hi i am using this code to create a tableview: https://www.b4x.com/android/forum/threads/tableview-action-swipe-buttons.61111/ everything is also working fine. no when i want to refill the tableview its not working. i have a list where i store my items (only strings) and all changes that are made are made to the list after i have updated the list i want to view the result in a tableview so i clear the tableview and refill it but its not working. so what i did is intialize again the tableview and remove it from his parent and add it again to the panel and then it worked. but is this the right way to do? thanx .
Erel B4X founder Staff member Licensed User Longtime User Jul 17, 2016 #2 Are you calling TableView.ReloadAll after you add the items? Upvote 0
ilan Expert Licensed User Longtime User Jul 17, 2016 #3 Erel said: Are you calling TableView.ReloadAll after you add the items? Click to expand... No ... (thank you erel now its working fine ) i also noticed that the "TableView1_SelectedChanged" event will be raised only if i swipe on the item and not on click. is that correct? (should i open a thread for this question? ) Upvote 0
Erel said: Are you calling TableView.ReloadAll after you add the items? Click to expand... No ... (thank you erel now its working fine ) i also noticed that the "TableView1_SelectedChanged" event will be raised only if i swipe on the item and not on click. is that correct? (should i open a thread for this question? )
Erel B4X founder Staff member Licensed User Longtime User Jul 17, 2016 #4 It is always better to start a new thread for a new question. SelectedChanged should be raised when you click on an item. Upvote 0
It is always better to start a new thread for a new question. SelectedChanged should be raised when you click on an item.
ilan Expert Licensed User Longtime User Jul 17, 2016 #5 Erel said: It is always better to start a new thread for a new question. SelectedChanged should be raised when you click on an item. Click to expand... ok you are right Erel said: SelectedChanged should be raised when you click on an item. Click to expand... https://b4x.com/android/forum/threads/tableview-with-actionbutton-event-raise.69083/ Upvote 0
Erel said: It is always better to start a new thread for a new question. SelectedChanged should be raised when you click on an item. Click to expand... ok you are right Erel said: SelectedChanged should be raised when you click on an item. Click to expand... https://b4x.com/android/forum/threads/tableview-with-actionbutton-event-raise.69083/