Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In this article the code will be refactored from the previous sample (Adding simple criteria, sorting and data paging), the correct filtering functions will be implemented for the text columns and additional functionality will be added to have a fully working DataSource implementation.

...

Set up DataSource to

...

be loadable by the server

In the previous sample, filtering by a text value would not select rows which contained the filter term, only those that were specifically equal to it. To correctly filter by a text value, it is necessary to identify which columns are of type text and which are other types. To achieve this, the declaration of the DataSource needs to be moved to an external a separate file, which will be loaded on both the client and server side. 

...