fingers10 / JqueryDataTablesServerSide

Asp.Net Core Server Side for Jquery DataTables Multiple Column Filtering and Sorting with Pagination and Excel Export
MIT License
227 stars 37 forks source link

adding html types of column search controls #30

Closed UseMuse closed 4 years ago

UseMuse commented 4 years ago

I offer the following types:

  1. input type date or datetime-local
  2. input type number
  3. input type string
  4. select
  5. multiple select
fingers10 commented 4 years ago

Hi @UseMuse,

Thanks for reaching out. What do you mean by offer? Can you please explain more? You need the above input types in search inputs?

Thanks, fingers10

UseMuse commented 4 years ago

under each column add the ability to indicate what type the search control should be: I offer the following types:

  1. input type date or datetime-local
  2. input type number
  3. input type string
  4. select
  5. multiple select

You need the above input types in search inputs?

Yes, I think it would be convenient

UseMuse commented 4 years ago

for the following types search columns:

  1. input type date or datetime-local

use html5 or since jquery is used use the jquery daterangepicker plugin

for the following types search columns:

  1. select
  2. multiple select

use lazy loading or take data from the resulting data set

UseMuse commented 4 years ago

@fingers10 I’m interested, maybe I’ll try to implement it myself, but it’s not accurate :)But I do not have to wait)

fingers10 commented 4 years ago

@UseMuse I can look on adding html5 input types like number, text, datetime, datetime-local, select, etc. But adding jquery daterangepicker plugin is completely out of scope for this package. This is just a server side processor. What you can do instead is try to initialize the date picker on the inputs after the table has been initialized using the initComplete