ListViewComboBox dynamically dropdownheight changing issue

Answered Closed
0
0

Hi,

I’m using ListViewComboxBox and trying to dynamically change the DropDownHeight according to the content i have in control.

I am successfully able to get the ItemHeight and calculate the drop down height which i want to change but when i try to change the drop down height, it only changes when the drop down height new value is less than the previous value of drop down height.
For better reference, i have added screenshots, so you can understand better about the problem.

You can see in picture Printer1-Select-Again-After-Printer3-Selection, the drop down height took height of Printer3-Select, as it has less height than Printer1-Select.

Apparently, the drop down height change for Priner2-Select as well, as it has less height than Printer1-Select.

 

Can you please suggest me any solution, to overcome this?

Thank you advance for your help.

 

Ammad

  • You must to post comments
Best Answer
1
0

The DropDownHeight “Returns or sets the maximum height in pixels of the drop-down portion of the Wisej.Web.ComboBox.”

The UserComboBox adjusts the height of the drop down to the height of the DropDownControl, and limits it to the DropDownHeight. In your case you should set the DropDownHeight to the maximum you want to limit the height to and set the height of this.listViewComboBox1.ListView.Height.

  • Ammad Ahmed
    Thanks a lot Luca, it solves the problem.
  • You must to post comments
Showing 1 result