Ticket T178171
Visible to All Users

How to set ASPxPopupControl size

created 10 years ago

[DevExpress Support Team: CLONED FROM T176651: How to display ASPxGridView in the modal popup window]
Thank you very much for your help. I got the pop-up control to work. On the default page there is the button that opens up the pop-up. In the pop-up there is a grid, an item can be selected, and when Return Selection button is clicked, it returns several fields back to default (parent) page and pre-fills several form fields. NOW my problem is the way the pop-up looks and loads. I'm not sure why it is acting funny.
- dumb question, but how do i set the size of the pop-up? What seems like it should work, doesn't work. I think i'm able to set the width, but the height doesn't seem to set properly. I can re-size, but i would like to be able to set the pop-up size.
Thank you for your help in advance.

Answers approved by DevExpress Support

created 10 years ago

Hello,

To set the ASPxPopupControl size, use the ASPxPopupControl.Height and ASPxPopupControl.Width properties. Currently, you are setting the popup height as 10 pixels. Increase the height value and check if it works.

    Comments (2)

      Whenever i set the height on the control, the height seems to modify the header only. Could there be an issue with the version of dev express i'm running? I am running dev express v.12.1.7. I also noticed that there isn't an assembly reference for the aspxpopup control. Thank you.

      DevExpress Support Team 10 years ago

        Hi Welch,

        These settings are applied to the width and height attributes of the main ASPxPopupControl element on the client. They should work in all version. It looks like something else causes this issue. Perhaps, the How to inspect CSS rules will be helpful to determine the cause of the issue. If not, please provide us with a small project so that we can reproduce the issue on our side.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.