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
1935
UltraComboEditor with an UltraTree as the DropDownEditor- how to align the DropDownEditor to left edge ?
posted

Hi,

I have a UserControl that is composed of 1 UltraComboEditor and its DropDownEditoris a UltraTree
which is being done as follows where uce is UltraComboEditor and ut is UltraTree:

 // attach UltraTree control as the dropdown editor
uce.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#358875

the 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?