Skip to content

Commit 12dc9db

Browse files
docs(grid): workaround for header template block elements and sort icon
1 parent 96e7e1e commit 12dc9db

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

components/grid/templates.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,17 @@ Bound columns render the name of the field or their `Title` in their header. Thr
242242
<GridColumn Field="@(nameof(SampleData.ID))" Title="This title will not be rendered">
243243
<HeaderTemplate>
244244
<div style="text-align:center">Id</div>
245-
@* this is a block element and it will push the sorting indicator, keep this in mind *@
245+
@* this is a block element and it will push the sorting indicator, keep this in mind
246+
A rule like this one can move the sort indicator out of the static order of the elements
247+
<style>
248+
.k-grid th.k-header .k-icon.k-i-sort-asc-sm,
249+
.k-grid th.k-header .k-icon.k-i-sort-desc-sm {
250+
position: absolute;
251+
right: 0;
252+
top: 8px;
253+
}
254+
</style>
255+
*@
246256
</HeaderTemplate>
247257
</GridColumn>
248258
<GridColumn Field="@(nameof(SampleData.Name))">

0 commit comments

Comments
 (0)