Last Updated: 28 May 2015 13:24 by ADMIN
Created on: 12 Nov 2012 07:49
Category: MultiColumnCombo
Type: Bug Report
FIX. RadMultiColumnComboBox - drop down opening delays when the AutoSizeDropDownToBestFit property is enabled.
Drop-down opening of RadMultiColumnComboBox delays, when the AutoSizeDropDownToBestFit property is enabled and the control is bound to more than 2000 records.

Work around:

this.radMultiColumnComboBox1.ValueMember = "ID";
this.radMultiColumnComboBox1.DisplayMember = "Name";
this.radMultiColumnComboBox1.DataSource = table;
this.radMultiColumnComboBox1.AutoSizeDropDownToBestFit = false;
this.radMultiColumnComboBox1.BestFitColumns(true, false);
1 comment
Posted on: 28 May 2015 13:24
The reason for the delay is that by default the auto size functionality will measure all cells in the grid in order to determine the drop down size. Hence the more records (rows) you have with more cells in each row, the longer the measure operation would take. To handle this case, we exposed the AutoSizeDropDownColumnMode property. It allows you to switch from measuring all the cells to measuring some subset of cells that will work for you i.e. the DisplayedCells option will measure only with the currently visible cells. Here is a code snippet: 
this.radMultiColumnComboBox1.AutoSizeDropDownToBestFit  = true;
this.radMultiColumnComboBox1.AutoSizeDropDownColumnMode = Telerik.WinControls.UI.BestFitColumnMode.DisplayedCells;