Specifies the width reserved for a TreeNode's ImageUrl cell during runtime.
[Visual Basic]
Public Property IconCellWidth As
Int32
[C#]
public
Int32 IconCellWidth {get; set;}
Property Value
System.Int32
The width reserved for TreeNode's Icon cell during runtime.
Remarks
If a tree node has ImageUrl property specified, the image will be displayed in front of the main content; if icon is not specified, main content will be displayed.
If a group of TreeNodes have different ImageUrl settings, for example, some has Icon, and some doesn't have, the TreeNodes will be out of alignment.
Specify this property to researve space for tree nodes without Icon specified so that they can be alighed with those has Icon Specified.
By default, tree node group automatically adjusts icon cell width to make sure the text of nodes in a vertical group are aligned. EO.Web controls determines the maximum width of icon cell and apply it to all icon cells. This logic does not apply to nodes that have no Icon. You need to use this property to reserve space for such nodes.
Tip:
If you do not want to reserve space for nodes, set this property to 0 to disable automatic icon alignment.
See Also
TreeNodeGroup Class | EO.Web Namespace