Next
Update
Prev
Region : 
Run Filtering
Remove Filtering

You can set the filter for the column to find only records that match with the input value. This example demonstrates how to find the records whose value for the Region column match with the input value.


function runFilterFunction() {
  gridRoot.setFilterFunction("filterFunction");
}

function removeFilterFunction() {
  gridRoot.setFilterFunction(null);
}

function filterFunction(item) {
  if (inputForm.filterStr.value.length == 0)
    return true;
  if ((item["Region"]).indexOf(inputForm.filterStr.value) >= 0)
    return true;
    
  return false;
}

© 2017 KoolChart. All rights reserved.