PDA

View Full Version : buttons in grid's columns



nks14
20 Aug 2009, 10:52 AM
hi, i'm new at this so i need some help; i need to make a simple grid with 3 columns (id, name, delete). something like this

| id | name | delete |
------------------------------
| 1 | john | X |

so, my problem is that i need a button where at the X region (second row, last column). can someone please help me with detailed examples or tutorials?

thanks.

kolli
20 Aug 2009, 12:29 PM
http://extjs.com/examples/pages/grid/editable.html
http://extjs.com/examples/pages/grid/editable.html
also look for editable grid in GXT.

nks14
20 Aug 2009, 10:48 PM
other examples please?
i need help, because i have to finish the project fast.

aurelie
20 Aug 2009, 11:58 PM
You need to use a GridCellRenderer to create your button in your grid.
Look at this example:
http://extjs.com/examples/explorer.html#widgetrenderergrid