New item form of data-table-control opens verry small

Hello,

I use a data-table-control to add new items to another sharepoint-list (like former related-item-control).

The new form of the related list unfortunatly opens in a verry small dialog-window and I can`t manage to resize this window. I tried to change the form-mode but the size of the new form doesn not change.

Is it possible to enlarge the new form?

Thanks UDRO

PS: When opening the form directly in the list it opens in fullsreen mode.

Hello @UDRO,

You can define the size of the List or Library dialog window with the code:

fd.control('Control1').dialogOptions = {
    width: 1280,
    height: 720
}

Thank you. I read the documentation to this point. Great.

One more question on this topic:

I guess 'Control1' is a placeholder for the name of the control. How can I find the control-name of the form I want to resize?

Hello @UDRO,

Yes, the Control1 in the code must be replaced with the internal name of the control.

You can find the control name in the control's properties:

Great. It works.

Note: The code has to be placed in the main form where the data-table-control is placed.