During search, why we are sending request on every keyup?

During search, why we are sending request on every keyup?

TarunMahajanTarunMahajan Posts: 1Questions: 1Answers: 0

Suppose we have lac of records, in this case suppose it will take 5 seconds to get the records, and we have 5 character word needs to be searched, then it will send the 5 requests on the server according to the entered character, which is wrong according to me. Is there any alternate of this?

Answers

  • kthorngrenkthorngren Posts: 21,303Questions: 26Answers: 4,947

    There are a couple options:

    1. Use searchDelay.
    2. Remove the default search input, using the dom option and create one that behaves the way you want. You would use the search() api to perform the search.

    Kevin

This discussion has been closed.