|
Rank: Advanced Member Groups: Member
Joined: 9/2/2010 Posts: 120
|
Hi,
Excuse me for fool doubt but, in a ListBox control as I can get the height of each item?
Thanks in advance, Marcelo Camarate
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
No. You cannot get the height of each item from the ListBox directly. However because list item is template based, it is possible for you to dynamically generate some DHTML elements that your code can recognize and then use to get the HTML element's height. Why do you want to get the height of each item?
Thanks
|
|
Rank: Advanced Member Groups: Member
Joined: 9/2/2010 Posts: 120
|
Hi,
Thanks for your reply.
I'm using the ListBox inside DropDownTemplate of a ComboBox control and I want to adjust its height to the quantity of the items.
Regards, Marcelo Camarate
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
There is no easy way to do that now. We are thinking about adding a MinHeight and MaxHeight on the ListBox. That way ListBox will automatically adjust the drop down size based on the items size.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 9/2/2010 Posts: 120
|
Hi,
Thanks for your reply.
That would be an excellent idea. I'll wait anxiously for this feature.
Regards, Marcelo Camarate
|
|