Is there any way to set the GridLookUp's popup height either programmatically or in the designer? I don't see any way to do so, and the only help offered in other posts involved creating an event handler, which seems like overkill since there's no intelligence behind how I'm setting it (it's set once and forgotten).
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.
Hello Dov,
The popup form's height can be customized only by creating the GridLookUpEdit control's descendant. This can be done as follows:
public class MyGridLookUpEdit : GridLookUpEdit {
protected override PopupBaseForm CreatePopupForm() {
return new MyPopupGridLookUpEditForm(this);
}
}
public class MyPopupGridLookUpEditForm : PopupGridLookUpEditForm {
const int MyDefaultHeight = 350;
const int MyDefaultWidth = 300;
public MyPopupGridLookUpEditForm(GridLookUpEdit ownerEdit) : base(ownerEdit) { }
protected override Size DefaultBlobFormSize {
get {
return ViewInfo.CalcSizeByContentSize(
new Size(Properties.PopupFormWidth == 0 ? MyDefaultWidth : Properties.PopupFormWidth, MyDefaultHeight));
}
}
}
Thank you, Alex.
Might I then make a suggestion that it be assignable as a design-time (code or designer) and/or run-time property? That seems like overkill just to specify the size of the popup control.
Hello Dov,
I've converted this issue to a suggestion.
Thank you, Alex.