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
620
UltraComboEditor Drop down not opening up.
posted

Am populating the UltraComboEditor from sql server DB on the AfterDropDown/BeforeDropDown event.

The 1st image shows, how the combo's dropdown looks, when i click the combo's down arrow for 1st time. Even thought there is more than 1 data in the comb, the dropdown part is not expanding to show all items.

The 2nd image show, how the combo's dropdown looks, when the combo's down arrow is clicked 2nd time. Now it expands the dropdown part of the combo, showing the items in it.

Every time i click the down arrow button of the combo, the combo gets populated from DB.

I just want to know why 1st time the combo is not expanding.

Am using infragistics winforms controls ver. 13.2.20132.1000

Thank you,

Toji

Parents
No Data
Reply
  • 0
    Offline posted

    If you  handler for the BeforeDropDown event, the dropdown will not be sized properly.

    the true answer is 

    List<ComboxData> dataSource = (List<ComboxData>)cmb.DataSource;

    dataSource.Insert(0, new ComboxData() { .... });
    cmb.Rows.Refresh(RefreshRow.ReloadData);  // this is important
    }

Children
No Data