This is a migrated thread and some comments may be shown as answers.

[Solved] Grid Popup Edit Form Position

2 Answers 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Yan
Top achievements
Rank 1
Yan asked on 17 Aug 2011, 02:57 PM
Hi,

I have found an example from your site which shows how to position the grid popup edit form centrally. But once I have run your example, I have noticed that the popup edit form is actually positioned near to the left hand-side as you can see from the attached image.

Your example position it in the middle of the browser's height but it is not positioned in the middle of the browser's width.

Would you please tell me how to make it exactly in the center of the browser window? 

2 Answers, 1 is accepted

Sort by
0
Accepted
Rosen
Telerik team
answered on 17 Aug 2011, 04:15 PM
Hi Yan,

You should modify the code similar to the following:

<script type="text/javascript">
    function grid_edit(args) {
        $(args.form)
            .closest(".t-window")
            .css("marginLeft", 0)
            .data("tWindow")
            .center();
    }
</script>

Regards,
Rosen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

0
Yan
Top achievements
Rank 1
answered on 18 Aug 2011, 06:07 PM
Thanks!!
Tags
Grid
Asked by
Yan
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Yan
Top achievements
Rank 1
Share this question
or