My requirement is to display the show entries in textinput rather in dropdown
My requirement is to display the show entries in textinput rather in dropdown
sreecharanm
Posts: 5Questions: 1Answers: 0
Instead of the dropdown, I want the text input . and I can enter whatever the input I want in that. Is that possible
This question has accepted answers - jump to:
This discussion has been closed.
Answers
Like this?
Colin
@colin , my question is not search for the column, i want to display show entries menu (which is a dropdown) i want that to display as text input and i if enter the number suppose 20, 20 records has to display in the page if i give 30 , 30 records should display. there should not be any pre-defined count
This should do it for you: http://live.datatables.net/dafisuro/1/edit
Colin
@colin , yes, that will work for me . thanks for that i wrote that using keyup instead of onchange. is there any possibility that we can position the textinput in show entries position.
@colin
Yep, you can use
dom
for that - there are some examples on the reference page,Colin
Also look at this example:
https://datatables.net/examples/advanced_init/dom_toolbar.html
Kevin
/* Solution */
var datatable = $('#dataset').DataTable({
dom: '<"div.toolbar">frtip'
});
/* positioning the customized show entries text input field */
/* keyup functionality for the show entries text input field */
/* assigning the default length to the show entries text input field */