Hello webix team,
Is there a built in functionality to define an initial column filter value?
If i add a value to the filter definition the defined value is written into the column filter but it won´t be considered for the initial data request.
see Code Snippet
Thanks
Hello Mimu1988,
To make an initial filter value work you can use ready property. It’s event handler fires after the component has been initialized so here you can get an initial filter value const title = $$("grid").getFilter("title").value; and filter the datatable .
Please take a look at the example: Code Snippet
Hello Natalia,
Thanks for your reply, but your answer doesn´t really fit my need, cause the filtering will be done client-side.
I need the filtering be done serverside cause i use datafetch-functionality too.
So what i need is that the initial filter will be applied to the first request to the backend.
To apply the initial filter to the first request to the backend you can use loadNext method. It allows you to make a server request with all the query parameters already specified, essentially the data loading will only happen after all of the parameters (start, count, sort, filter ) are collected.
Here is an example: Code Snippet
Another way is to use proxy with load method.
But the order is important here:
1, set the state:
$$("master_grid").setState({ filter: {package: "plugin" } });
2. call loading the data via the proxy, where this state will be taken into account: $$("master_grid").load("myCustomName->https://docs.webix.com/samples/15_datatable/19_paging/data/data_dyn.php");
Please take a look at the example: Code Snippet
Hi Natalia,
Well it´s not quite the solution i was hoping for, cause i have about 20+ usecases where i must set the initial filter.
So i will now have to write code for every usecase where i need to set an initial filter instead of having the possibility to define the initial filter in the datatable configuration before initializing it 
Anyways thanks for your help 