Introduction of Enhanced DataTables, Added Security when Serializing View Models and Drawing Fixes
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 toDataTablesColumn
:- Will be used for both, global and column search if no
GlobalSearchPredicate
orColumnSearchPredicate
is given - The priority for the search predicate is now:
GlobalSearchPredicate
/ColumnSearchPredicate
>SearchPredicate
> default predicate based on thePrivatePropertyName
- Will be used for both, global and column search if no
- 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
andSelectFilter
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 theColumns()
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