forked from Knockout-Contrib/KoGrid
-
Notifications
You must be signed in to change notification settings - Fork 0
Column Sorting and Filtering
ericmbarnard edited this page Apr 11, 2012
·
1 revision
One of the smaller, but key features of KoGrid is its filtering and sorting abilities. KoGrid uses quite a bit of logic to correctly determine how to sort and filter your data.
Think about how difficult it would be to sort Dates and strings that represent dates... KoGrid does this all nicely for you!
Some have asked about the filtering logic that KoGrid uses. Currently (as of updates on 4/10/2012) KoGrid uses the following:
- "Begins With" logic
- if you type "S", the column will filter down to only items that begin with "S" in that column
- Wildcard logic - KoGrid supports (through configuration) either a
"*"or"%"character as the wilcard. The"*"is default.- "Contains"-type logic would be done by typing "*S" -> only items that contain "S" would remain in the grid