Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Support for extra request parameters

Compare
Choose a tag to compare
@ALMMa ALMMa released this 13 May 19:12
· 51 commits to master since this release

Provided support for extra request parameters sent with DataTables. Should not break any existing code.

The internal DataTablesRequest class was renamed into DefaultDataTablesRequest and made public so you may derive from it and add new parameters without explicitly implementing the whole IDataTablesRequest interface.

Since ASP.NET MVC need the default method BindModel available, it've made it virtual to be overriden. You should override it and use the internal Bind method with your custom type instead of the default one.

Also, remember to override the MapCustomProperties so you can map your custom request properties into your custom model.

A future version will provide a way to discover custom parameters and populate a dictionary, if you're not into extending the DataTablesBinder class.