Skip to main content
Tab

LayoutItemBase.Width Property

Gets or sets the layout item width.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(typeof(Unit), "")]
public virtual Unit Width { get; set; }

Property Value

Type Default Description
Unit String.Empty

A Unit value that specifies the width of the layout item.

Remarks

Important

  • If the item width is specified in percents, the width is applied to the HTML element containing the item, i.e., to a table cell or div element. In this case, the item width is 100%.
  • If the item width is specified in pixels, the width is applied to the item itself.

Note that the item container width can be more than the item width. It can be useful when creating a responsive layout.

<dx:LayoutItem Caption="Place" ColSpan="1" Width="9%" />
See Also