control.applyFilter()
- Last UpdatedJun 25, 2024
- 1 minute read
Use control.applyFilter() to specify search criteria on the hierarchical list at the first level.
Syntax
control.applyFilter(functionToBeCalled);
Parameters
|
Parameter |
Description |
|---|---|
|
functionToBeCalled |
Function to be called when search criteria is set. |
Return Value
This method returns a boolean value.
Example
// Filter records where the ProcessStatus column is set to 1.
control.findByID("H1").applyFilter(
function(currentVal)
{
if(currentVal.ProcessStatus == 1)
{
return true;
}
else
{
return false;
}
}
);
// Shows records in the hierarchical list matching the search criteria.