Ticket Q32140
Visible to All Users

Need help with ASPxPopupControl

created 17 years ago

I would like to buy the ASPxPopupControl, but I need to know this problem can be solved.

If there is a wide control, like in the example below, the ASPxPopupControl becomes as wide as that control, even though the wide control is in a scrollable panel.

I know that I can make the scrollable panel a fixed width, but then the "AllowResize" feature becomes useless.

Please help.

Thanks, Chris Milne

<dxpc:ASPxPopupControl ID="ASPxPopupControl1" runat="server" AllowDragging="True"
        AllowResize="True" Height="145px" ShowOnPageLoad="True" Width="300px">
        <ContentCollection>
            <dxpc:PopupControlContentControl runat="server">
                <asp:Panel ID="Panel1" runat="server" Height="100%" ScrollBars="Both" Width="100%">
                    <asp:Label ID="Label1" runat="server" Text="longtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtext"></asp:Label>
                </asp:Panel>
            </dxpc:PopupControlContentControl>
        </ContentCollection>
    </dxpc:ASPxPopupControl>

Show previous comments (5)

    Thanks Nick, but I am not using the ASPxMemoEdit control.
    It is the ASPxPopupControl that is the problem.
    The actual content(set of controls) inside the popup varies.
    I need the the popup to be able to handle wide controls in the content.
    The solution I thought you were suggesting was to have a scrollable panel (or div) that changes its size on the popup's client side resize event.
    This sounds like it might work, but I could not figure out how to make client side code run on the popup's resize event.
    So what I really want is an example or documentation that shows how to get javascript code to run on the ASPxPopupControl's client side resize event.
    Sorry if I was not clear about that.
    Thanks,
    Chris Milne

    DevExpress Support Team 17 years ago

      Chris,
      Do you know how to change the size of a div and its inner elements via client-side script? We have similar code in DevExpress.Web.ASPxEditors\Scripts\TextEdit.js. You can copy our code and adapt it to your situation. It's not and easy task. We share our code with you - there is nothing more we can help you with concerning this particular task. Please don't ask us to show a solution in an application in your situation. It's a bit beyond our duties, I apologize.
      Thanks,
      Nick

      Serge (DevExpress Support) 17 years ago

        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.