Have a look at the Kitchen Sink demo
(Tables -> Custom content)
http://pivot.apache.org/demos/kitchen-sink.html

http://svn.apache.org/repos/asf/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/tables.bxml
http://svn.apache.org/repos/asf/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/KitchenSink.java
(TablesRollupStateHandler)

On 16 November 2011 13:12, V SANTOSH PAVAN RAJU BS
<[email protected]> wrote:
> I want to place a checkbox in a tableview.
> I written code for that in bmal file in the following way:
>
> <TableView bxml:id="tableView">
> <columns>
> <TableView.Column name="select" width="25" headerData=" "/>
> <TableView.Column name="name" width="150" headerData="NAME" />
> <TableView.Column name="number" width="150" headerData="NUMBER"/>
> <TableView.Column name="age" width="100" headerData="AGE" />
> <TableView.Column name="status" width="1*" headerData="STATUS"/>
> </columns>
>
> <rowEditor>
> <content:TableViewRowEditor editEffect="vertical_slide" />
> <cellEditors>
> <select>
> <BoxPane styles="{padding:{left:5,top:3}}">
> <Checkbox />
> </BoxPane>
> </select>
> <name>
> <TextInput textKey="name" />
> </name>
> <number>
> <TextInput textKey="number" />
> </number>
> <age>
> <TextInput textKey="age" />
> </age>
> <status>
> <TextInput textKey="status" />
> </status>
> </cellEditors>
> </rowEditor>
> <collections:HashMap />
> <collections:HashMap />
>
> </TableView>
> <columnHeader>
> <TableViewHeader tableView="$tableView" />
> </columnHeader>
>
> But here checkbox is visible only when i double click on a row. and
> also when select a checkbox, remainig checkboxes in all the rows got
> selected.
> So tell me where i was wrong.
>
> --
> Thanks & Regards
> B.S.V.S.Pavan Raju.
> Skype: skype_pavan1
> Hyderabad.
>

Reply via email to