Hi,
I have a UserControl that is composed of 1 UltraComboEditor and its DropDownEditoris a UltraTreewhich is being done as follows where uce is UltraComboEditor and ut is UltraTree:
// attach UltraTree control as the dropdown editoruce.DropDownButtonDisplayStyle = Infragistics.Win.ButtonDisplayStyle.Never;dropDownEditorButton.Control = ut; this.uce.ButtonsRight.Add(dropDownEditorButton);
also refer to this thread
http://community.infragistics.com/forums/p/69641/358875.aspx#358875the width of the ultratree is usually wider then the ultracomboeditor, and when that is the case it will allign the dropdown (ultratree) to the right edge of the UCE. how do i allign it to the left?
reffer to the following attached screenshot.
the upper part shows what is happening. and the lower part shows how i would like it to appear.
this is very similar or maybe exactly as http://forums.infragistics.com/forums/p/26725/98198.aspx
but if possible i want to avoid using creationfilter .
i tried things like :
ut.Anchor = AnchorStyles.Left;dropDownEditorButton.Control.Anchor = AnchorStyles.Left;dropDownEditorButton.Control.Dock = DockStyle.Left;uce.DropDownListAlignment = DropDownListAlignment.Left;
but it doesn't seem to do it.
any thoughts?
A CreationFilter would not help. But there is a much easier way:
dropDownEditorButton.RightAlignDropDown = DefaultableBoolean.True;
i looked for all the "non-obviouse" properties like Dock and Anchor but never thought to look for such a specific property like RightAlignDropDown.
i was just about to let you know that it didn't help, then i thought to my self, RightAlignDropDown = True means that it should allign Right, but it is already allighned to the right edge so i tried RightAlignDropDown = DefaultableBoolean.False; and it worked !! now it is alligned left.
Thanks Mike, as always the support you guys provide is "off the grid" :-)