Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Open Dialog Window Next to Button?

Last post 09-01-2008 10:22 by [Infragistics] Rumen Stankov. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-28-2008 10:37

    • ehoop
    • Top 500 Contributor
    • Joined on 04-07-2008
    • Points 130

    Open Dialog Window Next to Button?

    Does anybody know a way to open the dialog window next to the button that opens the window? If you do not have the InitialLocation attribute set to Centered, the window opens right where it is placed on the page. I know you can specify the top and left attributes, but how do I locate where the button is on the page?

     

    • Post Points: 20
  • 09-01-2008 10:22 In reply to

    Re: Open Dialog Window Next to Button?

    I believe the easiest way to do that is to use the built-in ASP.NET AJAX Sys.UI.DomElement.getLocation() client-side method. Example:

    var element = e.target; (the HTML element where click is registered)

    var j = Sys.UI.DomElement.getLocation(element);
    var x = j.x;
    var y = j.y;

    getLocation() is officially documented by Microsoft here:

    http://www.asp.net/ajax/documentation/live/clientreference/Sys.UI/DomElementClass/SysUIDomElementGetLocationMethod.aspx 

    Best Regards,
    Rumen Stankov (MCSD.NET)
    The Infragistics ASP.NET Team
    • Post Points: 5
Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems