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
275
XamComboEditor DropDown-Width
posted

Hello,

how can I achieve that the dropdown container has the optimal width.

Optimal means the width of the "longest" item in the dropdownlist.

I tried this

http://es.infragistics.com/community/forums/p/82515/412900.aspx#412900

but this does not work in Version 14.1.

Border border = (sender as Popup).Child as Border;
border.Width = double.NaN;

The Child is a Grid not a Border anymore. I tried casting to the grid, but this not work.

Thanks for your help

Markus

Parents
No Data
Reply
  • 22015
    posted

    Hello Markus,

     

    Thank you for contacting Infragistics!

     

    I have been looking into your issue and have created a small sample application for you. In the sample application I am using the same XamComboEditor, that is used in the blog post you have provided. Then in the Opened event I am getting the Grid you have mentioned. Then using the Utilities class I am getting the first child of the grid, which is the border from the previous sample application.

     

    Please find the attached sample application and feel free to let me know if you have any further questions on this matter.

    ComboEditor_DropDownWidht.zip
Children