Gets or sets the width reserved for left icon cell during runtime if left icon is not specified.
[Visual Basic]
Public Property LeftIconCellWidth As
Int32
[C#]
public
Int32 LeftIconCellWidth {get; set;}
Property Value
System.Int32
The width reserved for left icon cell during runtime if left icon is not specified.
Remarks
If an item has no left icon, you can use LeftIconCellWidth to reserve space for an empty left icon so that it will be aligned to items that have left icon. This property is also used to reserve space for check icon if you set Checked property.
By default, item group automatically adjusts left and right icon cell width to make sure the text cell of items in a vertical group are aligned. EO.Web controls determines the maximum width of left icon cell and apply it to all left icon cells. Same logic applies to right icon.
However, adjustment cannot be done if no item in a group has left or right icon specified. This can cause item text shift to the right when an icon is provided later through client side script interface. In this case, you can use LeftIconCellWidth to force the space to be reserved when a group is firstly rendered.
Tip:
If you do not want to reserve space for certain items, set this property to 0 to disable automatic icon alignment.
See Also
BaseMenuItemGroup Class | EO.Web Namespace