Preventing fnServerData Executed on Incremental Search

Preventing fnServerData Executed on Incremental Search

nribekanribeka Posts: 2Questions: 0Answers: 0
edited July 2010 in General
Hi all,

Is it possible to prevent the fnServerData get executed everytime we type a new letter in the filter box? I think this will give a performance hit because a new query will be sent to the server on every keyup.

Thanks

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    http://datatables.net/plug-ins/api#fnSetFilteringDelay might do what you are looking for.

    Allan
  • nribekanribeka Posts: 2Questions: 0Answers: 0
    Allan,

    Thank you so much for the quick response. I will look into it :)

    One of our core developer is using datatables to search and page the hl7 queue in our system. It's being reviewed here:
    http://source.openmrs.org/cru/CR-TRUNK-46
This discussion has been closed.