Get SelectedRows from grid in different Layout cell

Hello,

I am creating a room booking system. Main idea is to have a layout with a list of guests on one side and the overview of rooms on the other side. Until now I have a form that sends guest ids by clicking on one of the rooms. The grid AND the room overview is within this form.
for this I use:

grid.parentFormOnSubmit(); form.submit();
Now I want to enhence the layout and use dhtmlxLayout. I would keep a form in cell “a” (room overview) but I don`t know how to access the SelectedRows of the grid in cell “b”.
Do you have any hint for me?

bg

Hi,

if you are not using iframes, the attached elements are in the same page as layout:

var idList = grid.getSelectedId();