Portal Drop Events Getting incorrect values for columnIndex and position

  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 <>
  2. #2

    Portal Drop Events Getting incorrect values for columnIndex and position

    Hello Ext.NET team,

    We are evaluating this framework for our application. If you can respond it would make it easier for us to make a decision. It is looking good so far.
    We are kind of stuck on this. I would really appreciate your response on how I can get correct position of portlet on drop event.

    Thanks,
    Rao

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