Hello Sophie_r,
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: https://snippet.webix.com/0ayp997k
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" } });
- 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: https://snippet.webix.com/u68cimnc