Completed
Last Updated: 31 Aug 2020 12:34 by ADMIN
Release R3 2020
Kevin
Created on: 14 Aug 2020 21:53
Category: MultiColumnCombo
Type: Bug Report
1
RadMultiColumnComboBox: AutoSizeDropDownToBestFit is not working

AutoSizeDropDownToBestFit is not working when i have 3 rows in the drop down list. Scroll bars appear with i have 3 rows, and when i only 2 rows it autosize the width of the dropdown.

 

[Code ]

        Dim TransData As DataTable = New DataTable
        TransData.Columns.Add("Index")
        TransData.Columns.Add("Type")
        TransData.Rows.Add("0", "-- Select --")
        TransData.Rows.Add("SEA", "Ship by Sea")
        TransData.Rows.Add("AIR", "Ship by Air")
        TransData.Rows.Add("VOR", "VOR by Air")

        TransportRadMultiColumnComboBox.DataSource = TransData
        TransportRadMultiColumnComboBox.DisplayMember = "Type"
        TransportRadMultiColumnComboBox.ValueMember = "Index"
        TransportRadMultiColumnComboBox.Columns(0).IsVisible = False
        TransportRadMultiColumnComboBox.Columns(1).HeaderText = "Transport"
        TransportRadMultiColumnComboBox.AutoSizeDropDownToBestFit = True

 

[Works when i have only 2 rows in my DataTable]

 

When i add 3 rows to my dataTable the AutoSizeDropDownToBestFit does not work.. WHYYYYYYYY??????

 

1 comment
ADMIN
Dess | Tech Support Engineer, Sr.
Posted on: 17 Aug 2020 06:31

Hello, Kevin,

The provided detailed information is greatly appreciated. I was able to observe the illustrated incorrect behavior.

I have logged it in our feedback portal by creating a public thread on your behalf. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.

I have also updated your Telerik points.

Currently, the possible solution that I can suggest is to use the following code for hiding the scrollbar: 

Me.RadMultiColumnComboBox1.EditorControl.HorizontalScrollState = ScrollState.AlwaysHide

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik