Skip to content

Introduction of Enhanced DataTables, Added Security when Serializing View Models and Drawing Fixes

Compare
Choose a tag to compare
@Namoshek Namoshek released this 01 Apr 05:55
· 87 commits to master since this release

Full list of changes v0.3.0...v0.4.0.

It is recommended to have a look at the updated documentation. It explains all the new features and changes in detail.

Additions

  • A new parameter SearchPredicate has been added to DataTablesColumn:
    • Will be used for both, global and column search if no GlobalSearchPredicate or ColumnSearchPredicate is given
    • The priority for the search predicate is now: GlobalSearchPredicate/ColumnSearchPredicate > SearchPredicate > default predicate based on the PrivatePropertyName
  • Adds a new package called DataTables.NetStandard.Enhanced with some additional features that extend on the base package:
    • Individual column search based on the yadcf library
    • For now, TextInputFilter and SelectFilter are available out of the box

Changes

  • The render process of our DataTables has been adjusted
  • The DataTablesSerializationContractResolver will now ensure only properties of our view model are serialized and sent to the client if they are listed in the Columns() definitions of our table (this avoids unwanted data exposure)

Fixes

  • The draw parameter of DataTables requests is now handled properly and returned back to the user