Portal Drop Events Getting incorrect values for columnIndex and position

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Portal Drop Events Getting incorrect values for columnIndex and position

    Hi,

    We are working on a dashboard where user will be able to personalize the portlets and we need to save the position of the portlets after every drop operation as well as close. I am trying to capture portlet's before and after columnIndex and position on Drop event. This is how I am doing:

    On server side I register event handlers as follows:
            Portal1.AddListener("BeforeDrop", "beforeDrop")
            Portal1.AddListener("AfterDrop", "afterDrop")
    Client side Javascript code:

      function beforeDrop(e) {
                  alert("Before :Column=" + e.columnIndex + ", Position="+e.position );
      }
     function afterDrop(e) {
                  alert("After :Column=" + e.columnIndex + ", Position=" + e.position);
     }

    This is the problem I am facing:

    position is always zero. And e.ColumnIndex is same in before and after events.

    I am wondering how I can correct values. I appreciate response on this.

    Thanks,
    Rao
    Last edited by Daniil; Mar 24, 2011 at 11:59 PM. Reason: There are square bracketes in [CODE] tags, not <>

Similar Threads

  1. [CLOSED] Grid Panel Masking Position is incorrect, Attached sample
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 10, 2011, 9:46 AM
  2. [CLOSED] [1.0] Make a Portal NOT a drop target
    By betamax in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 21, 2010, 11:57 AM
  3. About portal(Drag and Drop) design
    By latif in forum 1.x Help
    Replies: 2
    Last Post: Dec 29, 2009, 8:58 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. [CLOSED] Create Stateful Portal - Save Position and Collapse of Portlets
    By iansriley in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 16, 2008, 7:26 PM

Tags for this Thread

Posting Permissions