打印

DataGrid能实现多选吗?

DataGrid能实现多选吗?

DataGrid能实现多选吗?怎么实现,高手帮忙????贴上代码。。谢谢!!

TOP

如果只想用标签实现可以这样写:
复制内容到剪贴板
XML 代码:
  1. <w:dataGrid id=\"simple-grid\" value=\"#{grid.page.StaticDataBean.stockData}\" paged=\"true\" rows=\"10\"
  2.         var=\"data\" selectionModel=\"#{new org.operamasks.faces.component.grid.CheckboxSelectionModel()}\">
  3.         <w:outputColumn id=\"company\" width=\"100\" align=\"center\" sortable=\"true\" header=\"公司\" />
  4.         <w:outputColumn id=\"price\" width=\"200\" header=\"#{msgs['title.price']}\" />
  5.         <w:outputColumn id=\"change\" align=\"right\" header=\"#{msgs['title.change']}\" />
  6.         <w:outputColumn id=\"change_percent\" value=\"#{data.pctChange}\" header=\"#{msgs['title.change_percent']}\" align=\"right\" />
  7.         <w:outputColumn id=\"lastupdate\" value=\"#{data.lastUpdated}\" header=\"#{msgs['title.lastupdated']}\"
  8.            converter=\"outputDateFormatter\" />
  9. </w:dataGrid>

TOP