DevExtreme jQuery/JS - Resize and Relocate
To change the size of the LoadPanel, specify the height and width options.
JavaScript
- $(function() {
- $("#loadPanelContainer").dxLoadPanel({
- closeOnOutsideClick: true,
- height: 300,
- width: 500
- });
- $("#buttonContainer").dxButton({
- text: "Show the Load Panel",
- onClick: function () {
- $("#loadPanelContainer").dxLoadPanel("show");
- }
- });
- });
If you need to position the LoadPanel against a specific element on your page, set the position option.
JavaScript
- $(function() {
- $("#loadPanelContainer").dxLoadPanel({
- closeOnOutsideClick: true,
- position: {
- my: "left",
- at: "left",
- of: "#targetElement"
- }
- });
- $("#buttonContainer").dxButton({
- text: "Show the Load Panel",
- onClick: function () {
- $("#loadPanelContainer").dxLoadPanel("show");
- }
- });
- });
This configuration of the position option reads as follows: "place my left side at the left side of the "#targetElement".
See Also
Feel free to share topic-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.