2011-02-07 29 views
0

使用aspxPopupControl和AspxGridView在其中。是否有可能設置控件來填充所有彈出窗口的原因,現在當我嘗試調整彈出窗口的大小時,在頂部和底部有很多可用空間,當我增加彈出窗口的寬度時。感謝您的幫助使用aspxGridView填充AspxPopupControl

回答

0

格魯伯,

嘗試在這個問題上Q253230提到的方法:

<dx:ASPxHtmlEditor ID="ASPxHtmlEditor1" runat="server" Height="100%" Width="100%" ClientInstanceName="HtmlEditorBody" ResizingMode="Postponed"></dx:ASPxHtmlEditor> 

<dx:ASPxPopupControl ...> 
    <ClientSideEvents 
     AfterResizing="function(s, e) { 
      HtmlEditorBody.SetHeight(s.GetHeight() - 25); HtmlEditorBody.SetWidth(s.GetWidth() - 25); 
     }" 
     BeforeResizing="function(s, e) { 
      HtmlEditorBody.SetHeight(MIN_SIZE); 
      HtmlEditorBody.SetWidth(MIN_SIZE); 
     }" 
/> 

雖然該代碼是針對ASPxHtmlEditor,你能適應它的ASPxGridView。