07-27-2010 04:42 AM - edited 07-27-2010 05:37 AM
Trying to develop an app which contains icons arranged in a grid using GridFieldManager.
Currently icons' positions are fixed once they are added to the grid.
Is there a way to make it such that users are able to rearrange the positions of icons within the grid? e.g. move to another blank spot within the grid.
A good example would be like the BB menu where we can highlight the icon, select "Move" and choose the new location.
Appreciate any help I can get.
Thanks a lot in advance!
Solved! Go to Solution.
07-27-2010 08:56 AM
I am not very expericned with the GridFieldManager, but the basic solution is to to call Manager.delete() and then Manager.insert() where you want the fields to be
07-28-2010 10:37 AM
You can call the invalidate method on your screen to force it to be redrawn. You should not pop and push a screen just to have it redraw itself.
08-05-2010 02:57 AM
Just as a follow up to anyone who is interested. I had to delete both the fields which i had to swap places and do a Manager.insert to insert into the corresponding index. Then i call Field.setFocus and moveFocus to complete this action.