Set and get active in layout, grid or form


tabbar.setTabActive("a1");

  var tabbarId = tabMain.getActiveTab();

I can use the above code to set active to tabbar and get the active tabbar ID.

Now I want to ask the above operation which can work on layout, grid or form ?

Or I want to know which grid is work active when many grids in a layout ?

I want to know which grid is work active when many grids in a layout ?

You can try use globalActiveDHTMLGridObject global variable. It refers to the active grid on a page.

Thanks !

I can get the result for get active in multi grid !

But I also want to ask if the target is multi form or multi layout ?
I can set or get active in multi form or multi layout ?

But I also want to ask if the target is multi form or multi layout ?
I can set or get active in multi form or multi layout ?

There is not ready solutions for forms and layouts. You may try to detact active components manually by mousedown event listeners. You can set event listeners for divs where form or layout is created.