Ticket T176651
Visible to All Users

How to display ASPxGridView in the modal popup window

created 10 years ago

I have an ASP Form with many fields to be filled out, i have a user control (not sure if put together properly either) that has a grid. The user control grid is supposed to be a popup/modal and upon selection should pass back values to the parent and pre-fill certain fields. Does anyone have any examples or code i can see to achieve this?

Thank you.

Answers approved by DevExpress Support

created 10 years ago

Hello Welch,

I suggest you use the ASPxPopupControl component in order to achieve this goal. Place the grid inside its content collection and perform all required actions. Then, you can use any information about the grid's values. Since your entire scenario isn't clear to me, I can't suggest anything more precise right now. Please start with the popup control demos and feel free to contact us again in case of any further questions.

Best Regards,
Luke

    Show previous comments (2)

      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.
      - when pop-up is clicked, the page seems like it's doing a postback or screen refresh before actually showing the pop-up (screen blinks)?
      - the pop-up control looks different when clicked a second/third/etc time. Pop-up.jpg (first time clicked), i close pop-up, then click again, Pop-up2.jpg (second/third/etc time clicked). The header area blows up.
      Thank you for your help in advance.

        Hello,

        Please note that posting multiple questions within a report makes it difficult to correctly track and process such items.  To process your reports more efficiently, may we ask you to open a new issue for each question, suggestion or a bug report you want to post. Thank you for your cooperation.

        For now, I have created a separate issue on your behalf myself:

        T178171: How to set ASPxPopupControl size
        T178173: ASPxPopupControl - Postback is sent to server when showing popup
        T178174: ASPxPopupControl - Header has incorrect size

          I apologize for bundling my questions. Thank you for helping me create the additional issue tickets. I will respond to those there.

          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.