w2grid.sort

Sorts records in the grid.
sort()
OR
search(field, [direction, [multiField]])
field string, field name to search by
direction string, direction of search asc/desc (optional)
multiField boolean, indicates if previous sort needs to be cleared (optional)
Returns undefined.

Description

This method will sort records in the .records array if you have local data source or submit to the server side if your data source is remote. If you call this method without parameters, it will reset the sort.
If you have a grid defined in the following way: You can do following searches:

User Comments

comments powered by Disqus