como puedo utilizar el buscador de mi navbar y no el de datatable para filtrar registros de mi tabla

como puedo utilizar el buscador de mi navbar y no el de datatable para filtrar registros de mi tabla

leeoleeo Posts: 3Questions: 1Answers: 0

Tengo en mi navbar un buscador con diseño personalizado, lo que me gustaría es poder utilizarlo y esconder el que trae datatable por defecto, algun ejemplo lo agradeceria.

Answers

  • kthorngrenkthorngren Posts: 20,275Questions: 26Answers: 4,765

    Sounds like you are asking to remove the Datatables search input. To remove it use the dom option.

    Kevin

  • leeoleeo Posts: 3Questions: 1Answers: 0

    Si gracias! ya pude esconder el buscador que viene por defecto, lo que no he podido es que el buscador de la navbar funcione con el filtrado de datatables.

  • kthorngrenkthorngren Posts: 20,275Questions: 26Answers: 4,765

    Are you using searching set to false to hide the search input? If so that is turning off the search functionality.

    If this doesn't help then we will need to look at what you have. Please post a link to your page or a test case replicating the problem.
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

  • leeoleeo Posts: 3Questions: 1Answers: 0

    en realidad por el diseño del sitio debo cambiar el cuadro de búsqueda datatable por el de la navbar, entonces debo esconder el e viene por defecto en datatable.

  • kthorngrenkthorngren Posts: 20,275Questions: 26Answers: 4,765

    You need to leave searching enabled ('true') and use the dom option to keep from displaying the search input.

    Kevin

This discussion has been closed.