netui-data:columns Tag

<netui-data:columns> Tag

This tag is a container for the columns that render the header, data, and footer for each column in a <netui-data:grid> tag.

Syntax

<netui-data:columns
    [filterAction="string_filterAction"]
    [filterable="boolean_filterable"]
    [sortAction="string_sortAction"]
    [sortable="boolean_sortable"]
    [styleClassPrefix="string_styleClassPrefix"] />

Description

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.

Attributes

filterActionThe action method that will handle the filter operation.
 
RequiredSupports runtime expression evaluationData bindable
NoNoNo

filterableBoolean. Determines whether or not the column is filterable
 
RequiredSupports runtime expression evaluationData bindable
NoNoNo

sortActionThe action method that will handle the sort operation.
 
RequiredSupports runtime expression evaluationData bindable
NoNoNo

sortableBoolean. Determines whether or not the column is sortable.
 
RequiredSupports runtime expression evaluationData bindable
NoNoNo

styleClassPrefix

The style class prefix used to make the style class name in the header, data, and footer cells. The styleClassPrefix will be concatinated with a suffix to create style class names that are rendered inside of the <td> tags for each cell in this column.

Assuming the value of this attribute is foo, the style class names rendered for each part of the column are shown in the table below.
Column RegionStyle class
Headerfoo-td-header
Datafoo-td-data
Footerfoo-td-footer

 
RequiredSupports runtime expression evaluationData bindable
NoNoNo

Sample

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>
 

Sample Code

[BEA_HOME]/weblogic81/samples/workshop/SamplesApp/WebApp/tagSamples/netui_databinding/grid/grid.jsp

Related Topics

<netui-data:grid> Tag Sample

<netui-data:grid> Tag