How do I add parameters like standard post within sSearch_X, bRegex_X
How do I add parameters like standard post within sSearch_X, bRegex_X
Good morning,
I looked for a way to define a search ra different from the example that demonstrates the search on each column (http://www.datatables.net/release-datatables/examples/api/multi_filter.html).
I need to add 3 extra parameters in each property
aoColumns, which will be sent via post.
The parameters would be to seek,
- Type (like, number, date),
- Search condition (major, minor),
- Field (field name)
- The result would be to send the post go something like
sSearchType_0, sSearchCondition_0, sSearchField_0,
sSearchType_1, sSearchCondition_1, sSearchField_1,
sSearchType_X, sSearchCondition_X, sSearchField_X,
In the same logic sSearch_1, sSearch_X
X = iColumn
I imagine that would call the function like this
How could he do this?
I wish it were automatic class as a plugin, no need to
change each time you create a class using the option
"fnServerParams"
I use the fnServerData with ajax version.
thank you very much
Image from Grid with search multi
http://s7.postimage.org/6ujculrjv/Captura_de_Tela_2013_01_04_a_s_10_39_48.png
I looked for a way to define a search ra different from the example that demonstrates the search on each column (http://www.datatables.net/release-datatables/examples/api/multi_filter.html).
I need to add 3 extra parameters in each property
aoColumns, which will be sent via post.
The parameters would be to seek,
- Type (like, number, date),
- Search condition (major, minor),
- Field (field name)
- The result would be to send the post go something like
sSearchType_0, sSearchCondition_0, sSearchField_0,
sSearchType_1, sSearchCondition_1, sSearchField_1,
sSearchType_X, sSearchCondition_X, sSearchField_X,
In the same logic sSearch_1, sSearch_X
X = iColumn
I imagine that would call the function like this
How could he do this?
I wish it were automatic class as a plugin, no need to
change each time you create a class using the option
"fnServerParams"
I use the fnServerData with ajax version.
thank you very much
Image from Grid with search multi
http://s7.postimage.org/6ujculrjv/Captura_de_Tela_2013_01_04_a_s_10_39_48.png
This discussion has been closed.
Replies
Allan