SMART datagrid v.1 > Examples

[ grids ver.1.3.8]   Back  Forward

DataRow Tags  Example

You can specify a random value for each row of the data set and refer it to the dynamic style, row filter or derived field or use it as a descriptive value in the application. Please refer to Derived Field & Row Tags about the example of using the data tag in the derived field. 

1. Dynamic Style

In the grid below, Dynamic Style has been set in it, so it will display in blue if the data row tag is '#ludi' and in red if '#app'. 

Grid - 1
rows

Set the tag of selected rows as '#ludi'. 

Set the tag of Checked rows as '#app'. 

Remove the tag of all rows. 

Display the tag of the focused row. 

Get the data rows who have '#ludi' tag. 

Get the data rows who have '#ludi' or '#app' tag. 

2. Row Filter

You can set GridBase.rowFilter to display only the data rows who specified the tag above. Please refer to Related Examples about Row Filter. 

Display only the data rows whose tag is '#ludi'. 

Display only the data rows whose tag is '#app'. 

Display only the data rows whose tag is '#ludi' or '#app'. 

Clear Row Filter. 

Grid - 2
rows

View Source JSP 

See Also
DataSet.getRowTag
DataSet.getRowsByTag
DataSet.getRowsByTags
DataSet.setRowTag
DataSet.setRowTags
GridBody.rowDynamicStyles
GridBase.rowFilter
Examples
Derived Field & Row Tags
Row Filtering