Skip to content

Commit 15a5fc0

Browse files
svdimitrdimodi
andauthored
[3.4.0] HeaderClass (#990)
* docs(grid): add header class * Update components/grid/columns/bound.md * add info to treelist and refactor * Update components/treelist/columns/bound.md Co-authored-by: Dimo Dimov <961014+dimodi@users.noreply.github.com>
1 parent b64c092 commit 15a5fc0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

components/grid/columns/bound.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ You can use the following properties on bound columns:
8888
* `DisplayFormat` - the C# format string that is used to render the field value in the cell when the grid is in display mode. Read more in the [Column Display Format]({%slug grid-columns-displayformat%}) article.
8989
* `TextAlign` - specifies the horizontal alignment of the **data** cells. For example, you can use this property to right-align numeric columns. The property accepts `ColumnTextAlign` enum values (`Left`, `Right` or `Center`). If not set, the text alignment will depend on existing styles on the page, default browser behavior and the text direction. Header cell alignment requires a different approach with `HeaderClass` and [custom CSS]({%slug themes-override%}) - see [Center Grid column header text]({%slug grid-kb-center-column-header-content%}).
9090
* `OnCellRender` - an event that fires upon the rendering of the Grids columns. For more information read the columns [events]({%slug grid-column-events%}#oncellrender) article.
91+
* `HeaderClass` - `string` - adds a custom CSS class to the header cell of the column. Use it to apply custom styles or [override the default Grid styles]({%slug themes-override%}).
9192
* `Reorderable` - (defaults to `true`) - whether the user can [drag to reorder]({%slug components/grid/columns/reorder%}) this column.
9293
* `Resizable` - (defaults to `true`) - whether the user can [resize]({%slug components/grid/columns/resize%}) this column.
9394
* `Width` - (defaults to `null`) - the width of the column. See the [Dimensions]({%slug common-features/dimensions%}) article for information about the supported formats. See [Grid Column Width Behavior]({%slug grid-columns-width%}) for detailed information about the Grid behavior with different column width configurations.

components/treelist/columns/bound.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ You can use the following properties on bound columns:
129129
* `DisplayFormat` - the C# format string that is used to render the field value in the cell when the grid is in display mode. Read more in the [Column Display Format]({%slug treelist-columns-displayformat%}) article.
130130
* `TextAlign` - specifies the horizontal alignment of the **data** cells. For example, you can use this property to right-align numeric columns. The property accepts `ColumnTextAlign` enum values (`Left`, `Right` or `Center`). If not set, the text alignment will depend on existing styles on the page, default browser behavior and the text direction. Header cell alignment requires a different approach with `HeaderClass` and [custom CSS]({%slug themes-override%}) - see [Center Grid column header text]({%slug grid-kb-center-column-header-content%}).
131131
* `Width` - (defaults to `null`) - the width of the column. See the [Dimensions]({%slug common-features/dimensions%}) article for information about the supported formats. See [TreeList Column Width Behavior]({%slug treelist-columns-width%}) for detailed information about the TreeList behavior with different column width configurations.
132+
* `HeaderClass` - `string` - adds a custom CSS class to the header cell of the column. Use it to apply custom styles or [override the default TreeList styles]({%slug themes-override%}).
132133
* `MinResizableWidth` - (defaults to `30` and ignores smaller values) - the minimum allowed column width during [user resizing]({%slug treelist-columns-resize%}). Unlike the string `Width` property, this one is decimal and expects pixel values.
133134
* `MaxResizableWidth` - (defaults to `0`) - the maximum allowed column width during [user resizing]({%slug treelist-columns-resize%}). Unlike the string `Width` property, this one is decimal and expects pixel values.
134135
* `Locked` - (defaults to `false`) - defines whether the column is [locked (frozen, pinned)]({%slug treelist-columns-frozen%}).

0 commit comments

Comments
 (0)