Skip to content

Commit 1f2d60d

Browse files
committed
chore: update foreignKey sorting example
1 parent 066e958 commit 1f2d60d

File tree

4 files changed

+3
-20
lines changed

4 files changed

+3
-20
lines changed

grid/grid-foreignkey-sorting/ForeignKeySorting/ForeignKeySorting.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@
162162
<Content Include="Views\Shared\EditorTemplates\String.cshtml" />
163163
<Content Include="Views\Shared\EditorTemplates\Time.cshtml" />
164164
<Content Include="Views\Shared\EditorTemplates\Url.cshtml" />
165-
<Content Include="Views\Home\About.cshtml" />
166165
<Content Include="Views\Home\Index.cshtml" />
167166
</ItemGroup>
168167
<ItemGroup />

grid/grid-foreignkey-sorting/ForeignKeySorting/Views/Home/About.cshtml

Lines changed: 0 additions & 8 deletions
This file was deleted.

grid/grid-foreignkey-sorting/ForeignKeySorting/Views/Home/Index.cshtml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
});
1313
columns.Bound(p => p.ProductID);
1414
columns.Bound(p => p.ProductName);
15-
columns.Bound(p => p.CategoryID);
1615
columns.ForeignKey(p => p.CategoryID, (System.Collections.IEnumerable)ViewData["categories"],
1716
"CategoryID", "CategoryName").Title("Category").Filterable(f=>f.Extra(false));
1817
})
@@ -33,7 +32,6 @@
3332
<script>
3433
$(function () {
3534
var grid = $("#grid").data("kendoGrid");
36-
var menu = grid.thead.find("th[data-field='CategoryID']").attr("data-field", "CategoryName").data("kendoColumnMenu");
37-
menu.field = "CategoryName";
35+
grid.thead.find("th[data-field='CategoryID']").attr("data-field", "CategoryName");
3836
});
3937
</script>

grid/grid-foreignkey-sorting/ForeignKeySorting/Views/Shared/_Layout.cshtml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
<html>
33
<head>
44
<title>@ViewBag.Title</title>
5+
<link rel="shortcut icon" href="https://www.telerik.com/favicon.ico" />
56

67
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2018.3.1017/styles/kendo.common.min.css">
78
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2018.3.1017/styles/kendo.default.min.css">
8-
9+
910
<script src="https://code.jquery.com/jquery-1.12.3.min.js"></script>
1011
<script src="https://kendo.cdn.telerik.com/2018.3.1017/js/jszip.min.js"></script>
1112
<script src="https://kendo.cdn.telerik.com/2018.3.1017/js/kendo.all.min.js"></script>
@@ -18,13 +19,6 @@
1819
<div id="title">
1920
<h1>My Kendo UI for MVC Application</h1>
2021
</div>
21-
22-
@(Html.Kendo().Menu()
23-
.Name("menu")
24-
.Items(menu => {
25-
menu.Add().Text("Home").Action("Index", "Home");
26-
menu.Add().Text("About").Action("About", "Home");
27-
}))
2822
</header>
2923
<section id="main">
3024
@RenderBody()

0 commit comments

Comments
 (0)