darrachequesne / spring-data-jpa-datatables

Spring Data JPA extension to work with the great jQuery plugin DataTables (https://datatables.net/)
Apache License 2.0
450 stars 172 forks source link

Cannot use different data for filter, sort and display ? #47

Closed apri86 closed 7 years ago

apri86 commented 7 years ago

How can I use different data for the different data types requested by DataTables (ex: filter, sort and display)? I have refer to https://datatables.net/reference/option/columns.data, and use data as : "data": { "_": "phone", "filter": "phone_filter", "display": "phone_display" }

But, I got this error "java.lang.IllegalArgumentException: Property must not null or empty!". Btw, thanks for this usefully library @darrachequesne ;)

apri86 commented 7 years ago

Finally, I have use datatables render function, for data display property. Thanks

darrachequesne commented 7 years ago

I'm not too familiar with that format (I think it's called orthogonal data, isn't it?), but that case is indeed not handled currently.

Glad you found a solution! (that seems way easier than handling filter & sort args)