[CLOSED] Portlet Close Handler

  1. #1

    [CLOSED] Portlet Close Handler

    Hello,

    I want to read/write db when i close portlet
    when i running, Cause the page is blank...

    i create portal,PortalColumn,portlet in code-behide, what is my problem?

    ...
    ...
    Portlet p = new Portlet()
            {
                ID=title,
                Title = title,
                Height = 200,
            };
    
    //↓ i'm using wrong?
    p.Listeners.Close.Handler = "function() {#{DirectMethods}.ClosePortlet(e.panel.id, e.columnIndex, e.position);}";
    --------------------------------------

    [DirectMethod(ShowMask = true)]
        public void ClosePortlet(String id, int col_index, int position)
        {
            //DO DB READ/WRITE
        }
    Last edited by Daniil; Aug 18, 2012 at 9:36 AM. Reason: Please use [CODE] tags, [CLOSED]
  2. #2
    Hi,

    I don't think there are the following arguments available within a Close handler.
    e.panel.id, e.columnIndex, e.position
    Please see the available arguments:
    http://docs.sencha.com/ext-js/4-1/#!...el-event-close

Similar Threads

  1. Replies: 2
    Last Post: Dec 25, 2010, 11:07 AM
  2. [1.0] Portlet - Hide close button
    By serdias in forum 1.x Help
    Replies: 2
    Last Post: Nov 16, 2010, 10:10 PM
  3. [CLOSED] Add close (hide) tool button and event to Portlet
    By betamax in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 01, 2010, 1:16 PM
  4. Replies: 4
    Last Post: Apr 08, 2010, 8:05 PM
  5. Replies: 0
    Last Post: Mar 03, 2010, 9:51 AM

Posting Permissions