Hello,
How do you set the OffsetX and OffsetY of the PopupControlExtender via JavaScript? Is it possible?
I'm using PopupControlExtender to pop up a Panel. I know that the PopupControlExtender has OffsetX and OffsetY, but I don't want to use fixed position. Thank you.
Here is how to do it: You must set a Behavior ID on the PopupControlExtender. In this example, I'll call it Popup1:
function setXY() { var x = prompt("Enter X"); var y = prompt("Enter Y"); var ele = $find("Popup1")if (ele){ ele.set_OffsetX(parseInt(x,10)); ele.set_OffsetY(parseInt(y,10)); } }Sweet,
it works. Thank you. =)
No comments:
Post a Comment