[CLOSED] [1.0] Problem with portlet directevent

  1. #1

    [CLOSED] [1.0] Problem with portlet directevent

    I'm trying the example of: https://examples1.ext.net/#/Portal/Basic/Simple/
    and i have made for each event a function to save the actions:

            For Each oPort As Portlet In ControlUtils.FindControls(Of Portlet)(Me.Page)
                AddHandler oPort.DirectEvents.Hide.Event, AddressOf Portlet_Hide
                oPort.DirectEvents.Hide.EventMask.ShowMask = True
                oPort.DirectEvents.Hide.EventMask.Msg = "Saving..."
                oPort.DirectEvents.Hide.EventMask.MinDelay = 500
                oPort.DirectEvents.Hide.ExtraParams.Add(New Ext.Net.Parameter("ID", oPort.ClientID))
    
                AddHandler oPort.DirectEvents.Collapse.Event, AddressOf Portlet_Minimizar
                oPort.DirectEvents.Collapse.EventMask.ShowMask = True
                oPort.DirectEvents.Collapse.EventMask.Msg = "Saving..."
                oPort.DirectEvents.Collapse.EventMask.MinDelay = 500
                oPort.DirectEvents.Collapse.ExtraParams.Add(New Ext.Net.Parameter("ID", oPort.ClientID))
    
                AddHandler oPort.DirectEvents.Expand.Event, AddressOf Portlet_Maximizar
                oPort.DirectEvents.Expand.EventMask.ShowMask = True
                oPort.DirectEvents.Expand.EventMask.Msg = "Saving..."
                oPort.DirectEvents.Expand.EventMask.MinDelay = 500
                oPort.DirectEvents.Expand.ExtraParams.Add(New Ext.Net.Parameter("ID", oPort.ClientID))
    
                AddHandler oPort.DirectEvents.Move.Event, AddressOf Portlet_Mover
                oPort.DirectEvents.Move.EventMask.ShowMask = True
                oPort.DirectEvents.Move.EventMask.Msg = "Saving..."
                oPort.DirectEvents.Move.EventMask.MinDelay = 500
                oPort.DirectEvents.Move.ExtraParams.Add(New Ext.Net.Parameter("ID", oPort.ClientID))
            Next
    but when i use the move event
    AddHandler oPort.DirectEvents.Move.Event, AddressOf Portlet_Mover
    it's never called, the other ones are called.
    I'm using revision 3135
    I think it's a bug, thanks a lot
  2. #2
    Hi,

    You have to use Drop event of the Portal
    <Drop Fn="portletDrop" />
    
    function portletDrop(e){
        /*
            e is {
                portal,
                panel,
                columnIndex,
                column,
                position,
                data,
                source,
                rawEvent,
                status
            }
        */
    }
  3. #3
    Thanks, that worked fine!!
    mark it as solved
  4. #4
    i have another question about this, can the portal be scrollable and the Portlet resizable?
    thanks
  5. #5
    Hi,

    can the portal be scrollable
    Just add the following code to the portal
    <LayoutConfig>
        <ext:ColumnLayoutConfig FitHeight="false" />
    </LayoutConfig>
    can the portal be resizable?
    Add the following plugin to the portlet
    <Plugins>
        <ext:PanelResizer runat="server" />
    </Plugins>

Similar Threads

  1. [CLOSED] Problem with showing and removing Mask on Portlet
    By webppl in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 11, 2011, 10:59 AM
  2. [CLOSED] [1.0] Problem with Portlet Resizer
    By juane66 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 11, 2010, 10:43 AM
  3. Portlet ,Fit Layout problem
    By kiran malgi in forum 1.x Help
    Replies: 0
    Last Post: Jun 01, 2010, 3:05 AM
  4. Replies: 4
    Last Post: Apr 08, 2010, 8:05 PM
  5. Replies: 0
    Last Post: Mar 03, 2010, 9:51 AM

Tags for this Thread

Posting Permissions