The New Way to Build! Introducing ReUI — the developer platform for agentic UI with shadcn/ui
Learn More

Keen v3 & Datatables - Search/Filter


Hello,

I am working on upgrading my project from Keen v2 to v3. In the new datatables implementation I cant seem to get the search / filter bar to render. There's no mention of it in the keen docs either but its been a datatables feature since v1.

Using this on my layout pages:


<link href="assets/plugins/custom/datatables/datatables.bundle.css" rel="stylesheet" type="text/css"/>
<script src="assets/plugins/custom/datatables/datatables.bundle.js"></script>


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Hi,

Keen v3 uses the Datatable plugin for CRUD examples. KTDatatable is no longer used in v3. You can learn the Datatable Server Side processing. You can check Keen Docs for Datatables.

Regards.



I understand that. I never used KTDatatable before. Please note that in the Datatable Server Side processing it has the search bar by default, yet none of the examples in the Keen docs for Datatables has a search bar at all.

See Example



Hi,

Have you checked Datatable Server Side Processing?

You can see how the PHP backend script api/datatables.php handles the Ajax responses.

However, if you are looking for Ajax datatable please check this example.

The js initialization of the above table is defined here:
src/js/custom/apps/ecommerce/customers/listing/listing.js.

Regards.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(