Mar 24, 2011, 12:35 PM
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:
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
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 <>