Welcome Guest Search | Active Topics | Sign In | Register

Item height in a ListBox control Options
Camarate
Posted: Wednesday, August 24, 2011 9:16:23 AM
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
eo_support
Posted: Wednesday, August 24, 2011 7:18:54 PM
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
Camarate
Posted: Wednesday, August 24, 2011 10:13:24 PM
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
eo_support
Posted: Thursday, August 25, 2011 6:37:47 AM
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!
Camarate
Posted: Thursday, August 25, 2011 8:04:34 AM
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


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.