<netui-data:getDataGridState> Tag
Utility data grid tag that allows the page author to gain access to the
DataGridState
object
outside of the body of a <netui-data:dataGrid> tag.
<netui-data:getDataGridState
[dataGridConfig="dataGridConfig"]
gridName="gridName"
var="var" />
Utility data grid tag that allows the page author to gain access to the
DataGridState
object
outside of the body of a <netui-data:dataGrid> tag. When building UI for sorting, filtering, or paging,
this UI does not need to exist inside of the HTML table rendered by the data grid tags. In order to render
UI for sorting, filtering, and paging, it is often necessary to gain access to the state exposed to a data
grid via the
DataGridState
object. For example:
<netui-data:getDataGridState gridName="employees" var="employeeGridState"/>
<c:if test="${pageScope.employeeGridState.sortModel.sorts} != null}">
... render UI when sorts are present ...
</c:if>
this will expose the "employees" data grid's list of
--> SortModel.getSorts()
to the JSP for access by
the JSP EL.
Attributes |
dataGridConfig |
Required: No | Supports
runtime evaluation / JSP Expression Language: No |
|
Set a
DataGridConfig
instance used to create a
DataGridState
object. This attribute is
optional; when unset, the default
DataGridConfig
is used.
|
gridName |
Required: Yes | Supports
runtime evaluation / JSP Expression Language: No |
|
Set the data grid name whose
DataGridState
should be placed in the
javax.servlet.jsp.JspContext
.
|
var |
Required: Yes | Supports
runtime evaluation / JSP Expression Language: No |
|
Set the name used to store the
DataGridState
object as a
javax.servlet.jsp.JspContext
attribute.
|