SMART datagrid v.1 > Classes > RowFilter

Back  Forward

DataLudi.RowFilter.callback  property

Filter callback function which will select the rows to be displayed in grid when organizing grid rows from Data Set

function (row:GridRow):Boolean;

Only the rows which have returned true within callback function will be organized as grid rows. If set this property, expression will be ignored. 

Defaults to null.

Getter
function callback(): Function
Setter
function setCallback(value: Function)
Code -1
    // Get and display only the top 10 rows.
    grid.setRowFilter({
    	callback: function (row) {
    	    return row.index() < 10;
    	}
    });
See Also
active
expression
Examples
Row Filtering