Skip to content

Commit 139b601

Browse files
committed
Show sorted SimpleGriddly column icons even if they are not sortable
1 parent 08cadc9 commit 139b601

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

Build/CommonAssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
//
1616
// You can specify all the values or you can default the Revision and Build Numbers
1717
// by using the '*' as shown below:
18-
[assembly: AssemblyVersion("1.9.2")]
19-
[assembly: AssemblyFileVersion("1.9.2")]
18+
[assembly: AssemblyVersion("1.9.3")]
19+
[assembly: AssemblyFileVersion("1.9.3")]
2020
//[assembly: AssemblyInformationalVersion("1.4.5-editlyalpha2")]

Griddly/Content/griddly.css

+11-11
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@
4949
cursor: pointer;
5050
}
5151

52-
.griddly th.sortable span.icon
53-
{
54-
width: 0;
55-
height: 0;
56-
vertical-align: top;
57-
border-right: 4px solid transparent;
58-
border-left: 4px solid transparent;
59-
content: "";
60-
margin-top: 7px;
61-
display: none;
62-
}
52+
.griddly th.sorted_a span.icon,
53+
.griddly th.sorted_a span.icon {
54+
width: 0;
55+
height: 0;
56+
vertical-align: top;
57+
border-right: 4px solid transparent;
58+
border-left: 4px solid transparent;
59+
content: "";
60+
margin-top: 7px;
61+
display: none;
62+
}
6363

6464
.griddly th.sorted_a span.icon
6565
{

Griddly/Views/Shared/Griddly/Griddly.cshtml

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
{
159159
bool isSortable = !simple && !string.IsNullOrWhiteSpace(column.ExpressionString);
160160
<th class="@column.ClassName @(isSortable ? "sortable" : null) @(column is GriddlySelectColumn ? "select" : null) @(column.DefaultSort != null ? (column.DefaultSort == SortDirection.Descending ? "sorted_d" : "sorted_a") : null)" @Html.AttributeNullable("data-griddly-sortfield", simple ? null : column.ExpressionString) @column.HeaderHtmlAttributes.ToHtmlAttributes()>
161-
@if (isSortable)
161+
@if (!string.IsNullOrWhiteSpace(column.ExpressionString))
162162
{
163163
<text>@column.Caption<span class="icon">&nbsp;</span></text>
164164
}

0 commit comments

Comments
 (0)