ak1001
#1
Hi,
i,m trying to use modal window with some custom form fields , and grid component
and can’t figure out how
- is it possible to attach two components - form and grid to modal window? seems no
- is it possible to attach layout to modal window and then form and grid or custom html to layout cells
- how to optimize for usage - open window - load different data, init with values, edit, close/hide modal with data save
- can be internal components of modal window accessed by id when modal in not opened?
- Or is it possible to create some hidden containers with my html form and then attach it to modal window and show
- is it possible to attach two components - form and grid to modal window? seems no
Please, try to attach a layout to your window and arrange all the neede components in the layout.
- is it possible to attach layout to modal window and then form and grid or custom html to layout cells
Yes, this is the recommended way to arrange the complext content of a container.
- how to optimize for usage - open window - load different data, init with values, edit, close/hide modal with data save
each component grid or form has the API to work wirth its data:
data loading:
https://docs.dhtmlx.com/suite/form__api__form_setvalue_method.html
https://docs.dhtmlx.com/suite/data_collection__api__load.html
https://docs.dhtmlx.com/suite/data_collection__api__parse.html
data saving:
https://docs.dhtmlx.com/suite/form__api__form_send_method.html
https://docs.dhtmlx.com/suite/data_collection__api__save.html
- can be internal components of modal window accessed by id when modal in not opened?
Yes, you are ableto access the component by API if its parent window is closed.