Skip to content

Commit fe29d36

Browse files
docs(grid): add column width behavior article
1 parent 4a17a6d commit fe29d36

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

components/grid/columns/width.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: Width
3+
page_title: Grid for Blazor | Column Width
4+
description: Column width behavior in Grid for Blazor
5+
slug: grid-columns-width
6+
tags: telerik,blazor,grid,column,width
7+
published: True
8+
position: 0
9+
---
10+
11+
# Grid Column Width Behavior
12+
13+
This article explains how the grid column width behaves depending on the settings applied by the developer.
14+
15+
With regard to the widths of its columns, the scrollable (default) Grid typically behaves as any regular HTML table with a `table-layout: fixed`.
16+
17+
* When all column widths are explicitly set and the cumulative column width is greater than the available Grid width, a horizontal scrollbar appears and all set column widths are respected.
18+
* When all column widths are explicitly set and the cumulative column width is less than the available Grid width, the remaining width is distributed evenly between all columns.
19+
* When only some column widths are set and the cumulative width of the columns with set widths is greater than the available Grid width, a horizontal scrollbar appears and all set column widths are respected. Columns with no set width are invisible as their width is `0`.
20+
* When only some column widths are set and the cumulative width of columns with set widths is less than the available Grid width, the widths of the columns with a set width are respected and the remaining width is distributed evenly between the other columns.
21+
* When no column widths are set, the available width is distributed evenly between all Grid columns.
22+
23+
# See Also
24+
25+
* [Column Resizing]({%slug components/grid/columns/resize%})

0 commit comments

Comments
 (0)