2012-05-27, 11:06
Hello,
I need to move items from one list to another.
Like in a select scenario
not selected list >> select list
I get that there is no remove items so I probably have to reload the lists for each select and try to put back the scrolling.
Is there any better way?
I can of course add items but that works kind a strange
This will add the item, BUT the item is only visible when the same item in list is selected! What is up with that?
I need to move items from one list to another.
Like in a select scenario
not selected list >> select list
I get that there is no remove items so I probably have to reload the lists for each select and try to put back the scrolling.
Is there any better way?
I can of course add items but that works kind a strange
Code:
if controlId == self.control_list_id:
position = self.list.getSelectedPosition()
#get select item
item = self.list.getSelectedItem()
#self.list.removeItem(position)
self.list2.addItem(item)
This will add the item, BUT the item is only visible when the same item in list is selected! What is up with that?