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

Popup window position ignored when using template

1 Answer 365 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Itai
Top achievements
Rank 1
Itai asked on 09 May 2016, 07:11 AM

I seem to have found a bug, or else I'm going something wrong that I can't figure. It seems as if the `position` property of the window configuration is completely ignored when using a template. I have made a simple example to show this:   

 

http://dojo.telerik.com/AkiwE

 

Even though the grid editable has `window: { position: { top: 0, left: 0} } `, the popup window still appears in the middle of the page.

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 10 May 2016, 02:32 PM
Hi Itai,

The described behavior is caused by the fact that the Grid centers the Kendo UI Window after creating it. To bypass this, you can handle the open event of the Window (still in the Grid's editable.window option), and set the desired position via the Window's setOptions() method.

Check the following dojo for a sample implementation:

http://dojo.telerik.com/AkiwE/2

I hope this helps.

Regards,
Dimiter Topalov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Itai
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or