Welcome Guest Search | Active Topics | Sign In | Register

Problem applying formating to CustomItem contents in treeview Options
Scott_Pulliam
Posted: Thursday, January 17, 2013 6:34:21 PM
Rank: Newbie
Groups: Member

Joined: 1/8/2013
Posts: 4
I can not seem to control the width of asp.net controls within customItems.

I am dynamically generating a treeview where each treenode is associated with a unique CustomItem. I am not having problems populating the nodes or node groups. Every treenode is associated with a unique customItem. Every customItem is populated with a couple of labels, a couple of small images and a couple of link buttons. All these controls have the correct text and images.

I have assigned css classes to each asp.net control and associated a css with the web page. With the associated css I can change colors and fonts but I can not change the margins of these controls, ie I can not vary the spacing between controls. In fact, I always get the same tight result even if I change the width property of the controls themselves.

I have colored the backgrounds of both the customItem control and the treeview to demonstrate that plenty of room exists.

Any idea why I can not control this aspect?

TIA
eo_support
Posted: Thursday, January 17, 2013 6:36:55 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

I can't think of anything. Do you have the page online? If you have the page online we might be able to visit it from here and see what we can find.

Thanks!
Scott_Pulliam
Posted: Thursday, January 17, 2013 6:58:21 PM
Rank: Newbie
Groups: Member

Joined: 1/8/2013
Posts: 4
Whoops! Seems asp.net or IE has to see units on lengths in css. I thought there was a default to px but seems there is not. Worked once I put px units in. Thanks again for the very quick replies: it really helps projects move.
eo_support
Posted: Thursday, January 17, 2013 7:00:29 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
No problem. Let us know if there is anything else.


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.