Show entries only when enter key was pressed using ajax server-side.

Show entries only when enter key was pressed using ajax server-side.

besartzekabesartzeka Posts: 1Questions: 1Answers: 0

Hi guys,

I'm new to DataTable and I find it really useful and yet extensive in terms of features.

What I'm trying to do is:
1. Initialize a empty datatable with no record/entries at all (only column names with no data).
2. Using server-side processing (ajax object), I want to type an input text in search input, and show entry/record based on my input value. So, show entries/record only when I hit enter.

Can anyone help me with that. Thanks in advance.
Sorry if there is another post like this but just couldn't find it.

Answers

  • colincolin Posts: 458Questions: 0Answers: 85

    Hi @besartzeka ,

    This example here will get you heading in the right direction. If you enter a string into the "initial search" input box, when you press "Load Data!", it will only get data that matches. You can hide the standard search with the dom selection if you want to make it tidier.

    Hope that gets you going,

    Cheers,

    Colin

Sign In or Register to comment.