Problem with empty/null values in AJAX request in Individual column searching

Problem with empty/null values in AJAX request in Individual column searching

SzymonK95SzymonK95 Posts: 4Questions: 1Answers: 0

Hello datatables geeks,
I would like make a Individual column searching in my datatable,
but in AJAX request I have problem with nulls in column[number][search][value].
I don't know why I have null there.
Please help me :)

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • kthorngrenkthorngren Posts: 21,171Questions: 26Answers: 4,922

    Your test case has some errors keeping it from running. I modified it to use the SSP objects template from here. The SSP column search seems to be working.
    http://live.datatables.net/mohotozu/1/edit

    Maybe I'm not understanding the issue.

    Kevin

  • SzymonK95SzymonK95 Posts: 4Questions: 1Answers: 0

    How can it works in yours on http://live.datatables.net/mohotozu/1/edit, but It works not on my localhost? I have the same lines of code for create inputs. But in controller I do not get search values from columns. I have only value of main search input, but I want make filter on false, and have only individual search. I do not know what to do with it

  • kthorngrenkthorngren Posts: 21,171Questions: 26Answers: 4,922
    edited May 2020 Answer ✓

    I think I understand the problem now. I see you have filter: false in your original post. There is not an filter option. Here is a list of all options:
    https://datatables.net/reference/option/

    Instead of filter it is searching. But you don't want to use that option because it will turn off the table's searching capabilities. To remove the default search input use the dom option, something like this dom: "lrtip".

    If this doesn't help then we will need to see the problem to help debug. Please post a link to your page or update the test case to show the problem.

    Kevin

  • SzymonK95SzymonK95 Posts: 4Questions: 1Answers: 0

    I do not how but now I have first name, last name, any search value. Thanks You

This discussion has been closed.