Any plan to add param on event onBeforeLoad every component, so we can add extra param before query send to server?
TIA
Any plan to add param on event onBeforeLoad every component, so we can add extra param before query send to server?
TIA
There are no such plans. The common way to do this is to create a custom proxy where you can define the needed behavior.
Helo listopad,
can you give sample right way to use custom proxy to load data tree with additional parameter?
TIA
Sure, here you go:
A live demo for the GET request:
http://webix.com/snippet/17cf4893
For the POST request, here’s an example created by our user:
http://docs.webix.com/desktop__server_proxy.html#comment-2946178592
Why use proxy to handle this case, why not ajax webix.ajax() directly?
Of course, you can call your own webix.ajax()
after the grid initialization or modify the link (described here), but proxy objects provide the most comprehensive way to create a custom loading pattern.