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
455
UltraCombo in cell doesnt display tool tip
posted

Hi

I am setting an ultracombo as editor control of  the ultrawingrid cell and I bind a dattable as datasource. These are the settings I do

           UltraCombo dd1 = new UltraCombo();
            dd1.DataSource = dt_;
            dd1.DisplayLayout.AutoFitStyle = AutoFitStyle.ExtendLastColumn;
            dd1.DisplayLayout.Bands[0].ColHeadersVisible = false;
            dd1.DisplayLayout.Bands[0].Override.AllowRowFiltering = DefaultableBoolean.True;
            dd1.DisplayLayout.Scrollbars = Scrollbars.Automatic;
            dd1.DropDownWidth = 0;
           

            //grid.DisplayLayout.Bands[0].Override.AllowRowFiltering = DefaultableBoolean.True;
            grid.DisplayLayout.Bands[0].Columns[colName_].AllowRowFiltering = DefaultableBoolean.True;
            grid.DisplayLayout.Bands[0].Columns[colName_].ValueList = dd1;
            grid.DisplayLayout.Bands[0].Columns[colName_].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownValidate;
            grid.DisplayLayout.Bands[0].Columns[colName_].AutoCompleteMode = Infragistics.Win.AutoCompleteMode.SuggestAppend;
            grid.DisplayLayout.Bands[0].Columns[colName_].Layout.Scrollbars = Scrollbars.Automatic;
            grid.DisplayLayout.Bands[0].Columns[colName_].Layout.AutoFitStyle = AutoFitStyle.ExtendLastColumn;

 The issues I have are

1) The filter doesnot appear on the drop down.

2) The drop down width is neither automatically adjusted to the cell's width nor the ultracombo provides a scroll bar.

3) The values in the drop down columns are not fully visible due to the drop down width and it doesnt display the tooltip with the complete value.

 

Please let me know what I am missing in this setting.

 

Thanks 

 

  • 469350
    Verified Answer
    Offline posted

    First, you should be aware that using an UltraCombo to provide a dropdown list in the grid is inefficient. You should use an UltraDropDown, instead.

     HOWTO:What is the best way to place a DropDown list in a grid cell?

     

    I would recommend that you remove this line of code: 

    dd1.DisplayLayout.AutoFitStyle = AutoFitStyle.ExtendLastColumn;

    The dropdown is set up, by default, to size the dropdown to the columns. By setting this, you are altering the behavior so that the columns are sized to the dropdown, instead. This is probably the cause of at least two of the issue you listed here. So don't set this property, but instead, handle the InitializeLayout event and loop through the columns and call PerformAutoSize on each one to size the columns to their contents so that all of the text is visible. 

    The Filtering UI is not displaying because it displays as an icon on the column header and you are hiding the column headers.  You cannot filter the dropdown without the column headers.