Modal window with form and grid

Hi,
i,m trying to use modal window with some custom form fields , and grid component
and can’t figure out how

  1. is it possible to attach two components - form and grid to modal window? seems no
  2. is it possible to attach layout to modal window and then form and grid or custom html to layout cells
  3. how to optimize for usage - open window - load different data, init with values, edit, close/hide modal with data save
  4. can be internal components of modal window accessed by id when modal in not opened?
  5. Or is it possible to create some hidden containers with my html form and then attach it to modal window and show
  1. 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.

  1. 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.

  1. 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

  1. 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.