Need help in datatable and form

Hi there

After many hours spent to find a solution, I have two problems that I don’t know how to solve.

  1. “elementsConfig” property in form, using html markup
  2. “save” property in datatable, need to modify request playload in order to send json.

I have a snippet for my first problem, but don’t know how to go further http://webix.com/snippet/34a9abeb.

Thank you again for everything…

need to modify request playload in order to send json.

Check onBeforeAJax event

I can confirm issue with elementsConfig, as quick solution you can use the next

<div view="form" elements-config='json://{"labelPosition":"top"}'>

http://webix.com/snippet/2da11c76

Thank You Maxim, the second problem is now solved but I’m having problems to implement the first one.
Do I need to callEvent on datatable, before datatable or after datatable? I also have a authorization token that needs to be set after every request. Thank You so much…

The code of onBeforeAjax handler can be attached at any moment, it doesn’t directly related to the datatable. The attached code will intercept and modify ALL ajax requests generated by Webix components.