Hi
We use datatables extensively, and with Metronic 8, the default search/filter box is seperate from the datatable.
When SaveState = True is set, how can the original search term be retained in the filter input field ?
<input type="text" id="ev_filter_search" class="form-control form-control-solid form-select-sm w-250px ps-9 me-3" placeholder="Search" />
When using Metronic 8 with DataTables and stateSave: true, the original search term is saved internally but not automatically restored in the external filter input. To fix this, manually set the input value using table.state().search on load. If you need help implementing it across pages, feel free to request a quote from us.
Hi,
You will need to handle it using KTCookie to store the search form value and handle it according to your requirements.
Regards.