E electro179 Active Member Licensed User Longtime User Feb 24, 2014 #1 hello How to do a multi selection in the table view with the pressed shift key (range) or CTRL (to select line 2,5,6,10,...) like explorer of windows. and after how to get the selection? thank you
hello How to do a multi selection in the table view with the pressed shift key (range) or CTRL (to select line 2,5,6,10,...) like explorer of windows. and after how to get the selection? thank you
jmon Well-Known Member Licensed User Longtime User Feb 24, 2014 #2 You can use the GetSelectedIndices method: B4X: For Each SelectedItem As Object In lv.GetSelectedIndices ... Next (EDIT) Sorry, I read Listview instead of tableview. You need to use the SelectedRowValues() method. Last edited: Feb 24, 2014 Upvote 0
You can use the GetSelectedIndices method: B4X: For Each SelectedItem As Object In lv.GetSelectedIndices ... Next (EDIT) Sorry, I read Listview instead of tableview. You need to use the SelectedRowValues() method.
E electro179 Active Member Licensed User Longtime User Feb 24, 2014 #3 ok but the multi selection is not actived TableView_Sensor.GetSelectedIndices does not exist Upvote 0
E electro179 Active Member Licensed User Longtime User Jun 26, 2014 #4 nobody has a solution for me ? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 26, 2014 #5 ListView supports multiselection. TableView doesn't. Upvote 0
jmon Well-Known Member Licensed User Longtime User Jun 27, 2014 #6 It looks like it could be possible, but you will have to implement that : http://docs.oracle.com/javase/8/jav...control/TableView.html#selectionModelProperty and that http://docs.oracle.com/javase/8/jav...ontrol/TableView.TableViewSelectionModel.html using javaobject. Upvote 0
It looks like it could be possible, but you will have to implement that : http://docs.oracle.com/javase/8/jav...control/TableView.html#selectionModelProperty and that http://docs.oracle.com/javase/8/jav...ontrol/TableView.TableViewSelectionModel.html using javaobject.