Search Filter to be placed outside datatable..

Search Filter to be placed outside datatable..

SvidhyaSvidhya Posts: 4Questions: 0Answers: 0

Search Filter to be placed outside datatable, as there is a customized buttons to be added to it at the same div.. Is there any way to do this?

Replies

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

    Yep, you can just move the element with jQuery - something like this,

    Colin

  • SvidhyaSvidhya Posts: 4Questions: 0Answers: 0

    thanks for the update @colin.. I have did like below and working fine :smile:
    <input type="text" class="form-control" id="myInputTextField" placeholder="Search">
    $(document).on('keyup', '#myInputTextField', function () {
    table.search($(this).val()).draw();
    });
    May be both will be helpful..

    Now i have another issue, need to move pagination, show entries and info outside of datatable.. similar to whatever will did for above search.. i am still searching for it.. It would be helpful if anyone whoever knows or resolved it can post their solution...

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

    You can use the method I posted before, but change the element to be moved...

    Colin

  • SvidhyaSvidhya Posts: 4Questions: 0Answers: 0

    perfect.. Thanks a lot @colin :smile:

This discussion has been closed.