12-10-2009 12:49 PM
I have a CustomListField .. i need to add a button column on each row of the list ...c an somebody hel[p me with sample code .. or the idea ...
Solved! Go to Solution.
12-10-2009 01:59 PM
A ListField provides a selectable Row. You can't subdivide the row up into pieces, at least I can't see a way that would not involve masses of complicated coding. So if you want a separately focusable button, you are going to have use something other than a ListField. Sorry.
12-10-2009 07:50 PM
oh ok .. good to know .. i gave it up
Now trying to create the <label> <Label> <Button> template in a customHorizontalFieldManager ... I do have 1 problem with it
2 cases .. i have FOCUSABLE on first <label> and <Button> .. (Actually wanted entire row .. i tried implementing your idea from some other POST)
i can get the row click working ... its thourgh First Label click .. but when Button is clicked I want a different action to be performed ... i have overridden these methods in Mybutton extends Field class
I want to toggle value on the button .. i store botht Toggle values in MyButton object ... andthe button is set to FOCUSABLE ... but cant get the click working on the button ..
Cna you please help .... thanks a ton
protected boolean navigationClick(int status, int time)
protected void fieldChangeNotify(int context)
catch (Exception e)
12-11-2009 03:57 AM
Have you debugged these statements to see if they are being executed? They look OK to me, so I suspect a problem with the listener.
You might also want to specify CONSUME_CLICK. See this Thread
12-11-2009 10:39 AM
in case it helps //. what worked for me is ...
first of first 2 labels in the row ->FOCUSABLE
Now i can perform different actions when label is clicked or button is clicked.
11-30-2011 03:54 AM