IS there any event to get the PortalLayout(class from the showcase) after the portlet was drag-droped into another PortletCell.
The addDropHandler fires before so i can't get the new position of the portlet (iterating through the portletLayout instance shows the old position of the portlet(before drag-drop))
Example:
Layout before drag-drop:
http://pokit.etf.ba/upload/?pokit569...5ec26db204.png
after moving the portlet "Sarajevo-x" from the PortletColumn[0] to PortletColumn[1] (drag-drop to the empty space under "Zamger") the onDrop event fires but when i check the port1 and port2 variables the column is still in port1 (column 0) (where it was before drag-drop)
Is there any other event handler that fires after the dragdrop
ps. i modified the smartgwt portlet theme to look like gwt-ext if someone needs it msg me
The addDropHandler fires before so i can't get the new position of the portlet (iterating through the portletLayout instance shows the old position of the portlet(before drag-drop))
Example:
Layout before drag-drop:
http://pokit.etf.ba/upload/?pokit569...5ec26db204.png
Code:
addDropHandler(new DropHandler() { @Override public void onDrop(DropEvent event) { Canvas[] portcell = portletLayout.getMembers(); PortalColumn pc1 = (PortalColumn) portcell[0]; PortalColumn pc2 = (PortalColumn) portcell[1]; Canvas[] port1 = pc1.getMembers(); //portlets Canvas[] port2 = pc2.getMembers(); //portlets }}
Is there any other event handler that fires after the dragdrop
ps. i modified the smartgwt portlet theme to look like gwt-ext if someone needs it msg me
Comment