This tag is a container for the columns that render the header, data, and footer for each column in a <netui-data:grid> tag.
<netui-data:columns
[filterAction="string_filterAction"]
[filterable="boolean_filterable"]
[sortAction="string_sortAction"]
[sortable="boolean_sortable"]
[styleClassPrefix="string_styleClassPrefix"] />
This tag is a container for the columns that render the header, data, and footer for each column in a <netui-data:grid> tag. Tags contained immediately within the <netui-data:columns> tag should be of the following types:
Additionally, the <netui-data:columns> tag has the capability to set global properties for all of the contained column tags. Specifically, the ability to sort/filter and the actions associated with performing these operations can be set here. All sortable and filterable column tags that are contained within a <netui-data:columns> tag may use the global properties or may override them if a column needs to be handled specially.
This sample shows a <netui-data:columns> tag used in a <netui-data:grid> tag.
<netui-data:grid dataSource="{pageFlow.allRows}" name="{pageFlow.gridName}"> <netui-data:gridStyle styleClassPrefix="gridStyle"/> <netui-data:pager renderInHeader="true" action="pageAction" renderInFooter="true"/> <netui-data:columns filterAction="begin" sortAction="begin"> <netui-data:anchorColumn action="detailsItems" addRowId="true" title="Details"/> <netui-data:anchorColumn action="updateItems" addRowId="true" title="Edit"/> <netui-data:basicColumn filterable="true" title="Itemnumber" sortable="true" name="itemnumber"/> <netui-data:basicColumn filterable="true" title="Itemname" sortable="true" name="itemname"/> <netui-data:basicColumn filterable="true" title="Quantityavailable" sortable="true" name="quantityavailable"/> <netui-data:basicColumn filterable="true" title="Price" sortable="true" name="price"/> </netui-data:columns> </netui-data:grid>
[BEA_HOME]/weblogic81/samples/workshop/SamplesApp/WebApp/tagSamples/netui_databinding/grid/grid.jsp