How to set new value in search

How to set new value in search

usbherathusbherath Posts: 10Questions: 4Answers: 0

I need to set a new parameter in column search parameter list. How can I do it?

Answers

  • colincolin Posts: 15,235Questions: 1Answers: 2,597

    The column().search() page is here. Hope that helps. If not, please give more information, there's not much to go on here!

    Cheers,

    Colin

  • usbherathusbherath Posts: 10Questions: 4Answers: 0

    These are the parameters currently sending with column search
    columns[0].data
    columns[0].name
    columns[0].orderable
    columns[0].search.regex
    columns[0].search.value
    columns[0].searchable
    .....

    I need to add new value like columns[0].isSelect. How can I do it?

  • colincolin Posts: 15,235Questions: 1Answers: 2,597

    Ah, I see, this is for the server-side processing. If you look at this example here, it shows how you can add custom variables to the Ajax request.

    Cheers,

    Colin

  • usbherathusbherath Posts: 10Questions: 4Answers: 0

    How can I add values in column search

  • colincolin Posts: 15,235Questions: 1Answers: 2,597

    I've been guessing what you want, you're giving the minimal information here. As I said, if you want to send more parameters with the search, the example above will do that. If you want to do in the search itself, you'll probably need to create a custom search, maybe something like this.

    If this isn't what you want, please explain fully, or better still, provide a live example that demonstrates the problem.

    Colin

This discussion has been closed.