Unable to trigger the Input filter dropdown on button click

Unable to trigger the Input filter dropdown on button click

beginner_2018beginner_2018 Posts: 46Questions: 19Answers: 0
edited May 2018 in Free community support

Dear All,

I am trying to display the input filter drop-downs on button click,Instead of Page load .So that page load time can be saved if I am having large amount of data.
And I had applied the code using button , But I don't find no luck to get through with my code.
Can any one please help me in knowing what's wrong in my code.

Fiddle

This question has an accepted answers - jump to answer

Answers

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

    Hi @beginner_2018 ,

    this.searchable() isn't an API call, it was giving this error in the console:

    (index):105 Uncaught TypeError: this.searchable is not a function
        at s.<anonymous> ((index):105)
        at s.<anonymous> (VM88 jquery.dataTables.min.js:139)
        at s.iterator (VM88 jquery.dataTables.min.js:100)
        at s.<anonymous> (VM88 jquery.dataTables.min.js:139)
        at s.every (VM88 jquery.dataTables.min.js:102)
        at HTMLButtonElement.<anonymous> ((index):104)
        at HTMLButtonElement.dispatch (VM87 jquery-1.12.4.js:5226)
        at HTMLButtonElement.elemData.handle (VM87 jquery-1.12.4.js:4878)
    

    This fiddle here is now working. I just removed that check - all your columns are searchable anyway.

    Cheers,

    Colin

This discussion has been closed.