Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
912
Resizing a panel that is the "control" in a DropDownEditorButton
posted

in my ultrawingrid I have assigned to a column a ultratexteditor with a buttonsright control that is a panel.  I set the default size for the panel before the dropdown drops down.  Now I would like to give the user the ability to resize the panel while the panel is dropped down.  However when changing the panel size programatically  the actual size doesn't change until I close the dropdown then dropdown again.  Trying this on a plain panel that is not in a dropdown and it works fine.  I'm guessing that there is some sort of other control I need to deal with in order to resize the panel when it is in a dropped down state, but I can't seem to find it.  Any ideas? 

Parents
No Data
Reply
  • 6120
    Verified Answer
    Offline posted

    Hello Ron,

    There are two possible ways to allow a user to resize the Panel in the DropDownEditorButton.

    1. By turning on the ability to resize the dropdown using the DropDownResizeHandleStyle property. For example,

    var dropDownEditorButton1 = new Infragistics.Win.UltraWinEditors.DropDownEditorButton();
                dropDownEditorButton1.DropDownResizeHandleStyle = Infragistics.Win.DropDownResizeHandleStyle.DiagonalResize;           
     
                dropDownEditorButton1.Control = this.panel1;           
                this.ultraTextEditor1.ButtonsRight.Add(dropDownEditorButton1);

    2. By setting the size of the dropdown in code using PreferredDropDownSize property:

    var dropDownEditorButton1 = this.ultraTextEditor1.ButtonsRight[0] as Infragistics.Win.UltraWinEditors.DropDownEditorButton;
                dropDownEditorButton1.PreferredDropDownSize = new Size(200, 200);  

    Please let me know if I may be of further assistance.

    Sincerely,
    Sahaja Kokkalagadda
    Associate Software Developer

Children