Is it possible to set content of a textFilter programicaly:
https://snippet.webix.com/nvbwy8m7
Compared to richSelectFilter the textFilter doesent have setValue() method and the datatable will by not reloaded
https://snippet.webix.com/3eb45109
Is it possible to set content of a textFilter programicaly:
https://snippet.webix.com/nvbwy8m7
Compared to richSelectFilter the textFilter doesent have setValue() method and the datatable will by not reloaded
https://snippet.webix.com/3eb45109
in case of textFilter
the filter’s node is HTMLInputElement.
you can simply set it’s value to empty string and call filterByAll
https://snippet.webix.com/yc9fvspo
My approach is to set programmatically a filter value in textField filter,
see customized example with works fine:
https://snippet.webix.com/v8r9qmvc
But since my code loads the data from external json file the filterByAll() method seams not to work anymore:
var table = {
// container: "table",
view: "datatable",
id: "table1",
url: "./input.json",
select: "row",
columns: [
{ id: "Name", header: ["Name", { content: "textFilter" }], sort: "string", adjust: true }
]
};
if your json file returns object array then above scenario should work.
but if in real life you are using dynamic data then you need to use serverFilter
instead of textFilter
btw: you have posted my snippet (Code Snippet) instead of customized
Thats strange, the programmatically set of the filter value works only with delay:
https://snippet.webix.com/l5gb8rj6
waitData works even better, thank you