Inserting a radiobutton on the 1st column of a Grid
21 Dec 2008 17:07:51 GMT
21 Dec 2008 17:19:28 GMT
21 Dec 2008 17:19:28 GMT
Well.
I was looking on the demo and maybe I should use a listBox instead a Grid, with "multiple= "false" .
Am I correct ?
22 Dec 2008 00:11:48 GMT
22 Dec 2008 00:11:48 GMT
if you want your users can choice multiple rows,
the better way is using listbox,
grid is only the simply way for the layout arrangement of you.
ZK - Open Source Ajax Java Framework
Hi
I want to use a radio (radiogroup) in the 1st column of a grid with some data.
This radio will be used as the "selection mark" of the data.
For instance : let's suppose user wants to select the 2nd row in the grid . He should click on the radio to select the row. After that, he can use the row (take some action, for example, edit that row data)
My idea is to use a ListModel , that contains the model objects and a RowRenderer, where I use the render method to render the radio and the components for the data model. But it did not work . The radio appears, but if i clicked on other radio it did not select the 1st. I guess I need to use a radio group , but I do not know how to do it, as it will be rendering by the RowRenderer
Do you have any ideas ?
P.S : I want to creante the window programmatically .
Thank you