basic search help

basic search help

kwapsterkwapster Posts: 6Questions: 4Answers: 0

I am testing out DT with a basic search example. Any idea why the following is not working?
live.datatables.net/bedukufu/1/edit

This question has an accepted answers - jump to answer

Answers

  • Rawland_HustleRawland_Hustle Posts: 94Questions: 16Answers: 0

    You can just move doSearch() outside initComplete to make it work but perhaps you were wondering why it doesn't work to call it from inside initComplete. That, I don't know :smile:

  • kwapsterkwapster Posts: 6Questions: 4Answers: 0

    Thanks for the reply, that's correct I realized i could move it around to get it to work. but I'm wondering what's the logic behind it not working inside initComplete.

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    Within initComplete, the initialisation wouldn't have completed, so table would be undefined. You can use this.api() to get the table object there - something like this: http://live.datatables.net/bedukufu/6/edit

    Colin

Sign In or Register to comment.