in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

ASPxPopupControl, I can not change the properties in run time

Last post 11/13/2008 3:45 AM by Roman R (Developer Express). 1 replies.
Page 1 of 1 (2 items)
Sort Posts:
Previous Next
  • 11/12/2008 10:56 AM

    • ArcoDa
    • Not Ranked
    • Joined on 1/21/2008
    • Posts 5

    ASPxPopupControl, I can not change the properties in run time

    Hi,

    I have a problem with an "ASPxPopupControl."

    I have created the popup with:

     

    <dxpc:ASPxPopupControl ID="ASPxPopupControlDataView" runat="server" AllowDragging="True"
             AllowResize="True" CloseAction= "CloseButton"
             EnableViewState="False" PopupElementID="blueArea"
             ShowOnPageLoad="False" ClientInstanceName="ASPxPopupControlDataView"
             EnableHierarchyRecreation="True">
             <ContentStyle>
                 <Paddings PaddingBottom="0px" PaddingLeft="0px" PaddingRight="0px"
                     PaddingTop="0px" />
             </ContentStyle>
            <ContentCollection>
                <dxpc:PopupControlContentControl ID="PopupControlContentControl1" runat="server"></dxpc:PopupControlContentControl>
            </ContentCollection>
        </dxpc:ASPxPopupControl>

     

    and I need, in run time to show the popup in modal mode in the center of the page:

    function popUpReport()

    { ASPxPopupControlDataView.PopupHorizontalAlign="WindowCenter";

    ASPxPopupControlDataView.PopupVerticalAlign="WindowCenter";

    ASPxPopupControlDataView.Modal="true";

    ASPxPopupControlDataView.Show();}

     

    The setting of the properties on run time have no effect, the popup is show in no-modal mode and in the top left corner of the page.

    Where is the error? Smile

     

    Thank you.

  • 11/13/2008 3:45 AM In reply to

    Re: ASPxPopupControl, I can not change the properties in run time

    Hello

    You cannot use properties which are declared in C# code in a JScript code.
    The ASPxPopupControl's client-side object has its own API. Please refer to the ASPxClientPopupControl class to get more information about this API.
    In your code, I suggest that you set the PopupHorizontalAlign, PopupVerticalAlign and Modal properties in the aspx or C# code.

    Thanks, Roman
    R&D, .Net Team
    Developer Express Inc.

    PS. If you wish to receive direct assistance from our Support Team, use
    Support Center at http://www.devexpress.com/Support/Center
Page 1 of 1 (2 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED