Click here to Skip to main content
15,899,475 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a dialog that i opened it when clicking a row of GridView
i want to open it in Mouse Position of row clicking ,how can i do it?



C#
$('#Div').dialog({

            autoResize: true,
            show: "clip",
            hide: "clip",
            height: 'auto',
            width: 'auto',
            autoOpen: false,
            modal: true,

position:'bottom',

            draggable: true,

            title: "نمایش ",
            open: function (type, data) {
                $(this).parent().appendTo("form");
            },
            buttons: { "بستن": function () { $(this).dialog("close"); } }
        });
Posted
Updated 18-Oct-11 1:05am
v3

1 solution

If you read the documentation the position option can take an array of x,y coordinates, not just a named position.

"2) an array containing an x,y coordinate pair in pixel offset from left, top corner of viewport (e.g. [350,100])"

http://jqueryui.com/demos/dialog/#option-position[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900