Returns applied search object for specified field.
getSearchData(field)
field |
string, search field name |
Returns object or null.
Description
If you want to see all searches applied for the grid, you can inspect
.searchData object. Use
getSearchData to find applied search
for a particular search field. This method will simply loop through
.searchData object.
The
field argument is the name of the search field you specified in
.searches array when you created the grid.
If you have grid defined in the following way:
And if user applied search, you can find applied search object:
If user did not apply any search, this method will return null.