[CLOSED] [1.0] Make a Portal NOT a drop target

  1. #1

    [CLOSED] [1.0] Make a Portal NOT a drop target

    Is there a way to prevent Portlets from being dropped into a particular Portal? Something like isDropTarget=false?
    I would still want the ability to drag Portlets from this Portal, but I would not want Portlets dragged and dropped into it.
    Perhaps a different container for the Portlets, that would still allow for layout?

    Also, is there a way to limit a column in a column layout Portal to only ONE Portlet per column?
  2. #2

    RE: [CLOSED] [1.0] Make a Portal NOT a drop target

    It appears that changing <ext:portal> to <ext:container> meets both requirements I was looking for in regards to not allowing portlets to be dropped onto it/ only allowing one portlet per column after render.

    [Solved]
  3. #3

    RE: [CLOSED] [1.0] Make a Portal NOT a drop target

    I had thought that changing Portal to Container would solve my issues but ext:Container does not have some of the events (namely ValidateDrop) that I need.
    if (e.portal == e.panel.ownerCt.ownerCt) {
    return true;
    }
    
    <Listeners>
        <ValidateDrop Handler="return e.portal == e.panel.ownerCt.ownerCt;" />
    </Listeners>
    These prevent me from dropping portlets in from other portals. Changing your example to this
    <Listeners>
        <ValidateDrop Handler="return e.column == e.panel.ownerCt;" />
    </Listeners>
    Solved the problem

    Thanks



    thanks

Similar Threads

  1. How to make the portal scroll bar at the top
    By jy00882735 in forum 2.x Help
    Replies: 1
    Last Post: Aug 16, 2012, 11:41 AM
  2. [CLOSED] [1.0] Drag Drop on TreePanel - Get reference to Target node
    By danielg in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Dec 14, 2011, 11:29 AM
  3. [CLOSED] Drop target area not becoming active
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Mar 21, 2010, 7:49 AM
  4. [CLOSED] [1.0] RowEditor bug and Portal "Drop" events
    By danielg in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Oct 21, 2009, 8:17 AM
  5. Replies: 2
    Last Post: Jan 14, 2009, 3:19 PM

Posting Permissions