w2grid.localSearch

Performs search on local data set.
localSearch([silent])
silent boolean, indicates whether to display sort time in the status bar
Returns number of milliseconds it took to search.

Description

Performs local search based on the information in the .searchData array. This method only works on the local data source, when .url property is not set. This method will loop through all the records and if a record is a match, it will remember it in the .last.searchIds array. This method will only search records, you still need to call .refresh() method to refresh them on the screen.
If you have grid defined in the following way: You can apply search in the following way:

User Comments

comments powered by Disqus