Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Datatables search input value


Hello, I am using datatables. statesave feature is active. I search in my search input, it works successfully. But when I enter the page for the first time, the search input value is undefined. When I make a search, there is no problem anymore, but when I enter the first page, it is undefined.

input: <input placeholder="Search companies" name="search" type="text" data-datatable-search="#kt_companies_table"/>

browser: {"page":1,"sortField":null,"sortOrder":"","pageSize":10,"filters":[],"totalItems":3,"totalPages":1}

when i update: {"page":1,"sortField":null,"sortOrder":"","pageSize":10,"filters":[],"totalItems":0,"totalPages":0,"search":"undefined2"}

If the search parameter appears at first startup, the problem seems to be solved. Can you help?


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)


Glad it solved. Thank you



Hi Hüsame Özçelik

Could you please clear the browser cache? May I know if you are using the latest version?

Thanks



This problem seems to be solved in version 9.1.2. Thank you.


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  :(