简体   繁体   中英

Kendoui Window set X and Y Position

How do I specifically set a kendo ui window to a location x, y

Ive tried both .x and .left and .y and .right

Neither of these seem to have any effect and I cant find anything online or in the docs.

Use the position property of the window object:

http://docs.telerik.com/kendo-ui/api/javascript/ui/window#configuration-position

$("#dialog").kendoWindow({
  position: {
    top: 100, // or "100px"
    left: "20%"
  }
});

You could achieve this directly via CSS

$("#windowId").closest(".k-window").css({
  top: 200,
  left: 400
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM