Right, you can't call pb.show() until it's been added as a behavior to some control. Otherwise it doesn't know what control to show when you call show().
I believe you want:
var pb = new Sys.UI.PopupBehavior(); pb.set_positioningMode(Sys.UI.PositioningMode.Absolute); pb.set_x(200); pb.set_y(200); editObject.get_behaviors().add(pb); pb.initialize(); pb.show();
Aha, that worked like a charm. It was not easy guessing the correct order of things...
Thanks a bunch.
No comments:
Post a Comment