Set character count to 1 for filter

Set character count to 1 for filter

mithun_daamithun_daa Posts: 11Questions: 0Answers: 0
edited November 2011 in General
Looks like it is set to 2 characters before the dataset is filtered. Is there any way i can change that to 1 character?

Replies

  • mithun_daamithun_daa Posts: 11Questions: 0Answers: 0
    anyone?
  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    You can create your own text input and attach your own routine to trigger the filter (or maybe override the filter on the DataTable-created input box).

    in response to whatever event you like (i.e. keyup, or maybe detect hitting enter, clicking a button, etc) call fnFilter for the column or for all bSearchable columns.

    see http://www.datatables.net/api#fnFilter
  • mithun_daamithun_daa Posts: 11Questions: 0Answers: 0
    I am very happy with the default implementation of "Filter", i just wan to change the char position when the filtering actually kicks in. right now it is set to start filtering at 2 and i want to change that to 1 so that as soon as a user types in a character it filters the data in the datatable.
  • mithun_daamithun_daa Posts: 11Questions: 0Answers: 0
    anyone?
This discussion has been closed.