This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<environment names="Development"> | |
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css" /> | |
<link rel="stylesheet" href="~/css/site.css" /> | |
<link rel="stylesheet" href="~/lib/kendo-ui-core/styles/kendo.common-bootstrap.min.css" /> | |
<link rel="stylesheet" href="~/lib/kendo-ui-core/styles/kendo.bootstrap.min.css" /> | |
</environment> | |
<environment names="Staging,Production"> | |
<link rel="stylesheet" href="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.6/css/bootstrap.min.css" | |
asp-fallback-href="~/lib/bootstrap/dist/css/bootstrap.min.css" | |
asp-fallback-test-class="sr-only" asp-fallback-test-property="position" asp-fallback-test-value="absolute" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "asp.net", | |
"private": true, | |
"dependencies": { | |
"bootstrap": "3.3.6", | |
"jquery": "2.2.0", | |
"jquery-validation": "1.14.0", | |
"jquery-validation-unobtrusive": "3.2.6", | |
"kendo-ui-core": "2016.2.812" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@(Html.Kendo().Grid<Order>() | |
.Name("grid") | |
@*...*@ | |
.Filterable(filterable => filterable.Operators(operators => | |
{ | |
operators.ForDate(options => | |
{ | |
options.Clear(); | |
options.IsGreaterThanOrEqualTo("From Date"); | |
options.IsLessThanOrEqualTo("To Date"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@(Html.Kendo().Grid<Order>() | |
.Name("grid") | |
@*...*@ | |
.Filterable() | |
@*...*@ | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@(Html.Kendo().Grid<Order>() | |
.Name("grid") | |
.DataSource(source => | |
source.Custom() | |
.Type("odata-v4") | |
.Transport(transport => { | |
transport.Read(read => | |
{ | |
read.Url("http://services.odata.org/V4/Northwind/Northwind.svc/Orders"); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@(Html.Kendo().Grid<Order>() | |
.Name("grid") | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#grid").kendoGrid({ | |
//... | |
filterable:{ | |
operators:{ | |
date:{ | |
gte:"From Date", | |
lte:"To Date" | |
} | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#grid").kendoGrid({ | |
dataSource:{ | |
type:"odata-v4", | |
transport:{ | |
read:"http://services.odata.org/V4/Northwind/Northwind.svc/Orders" | |
}, | |
pageSize:15, | |
serverPaging:true, | |
schema:{ | |
model:{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#grid").kendoGrid({ | |
dataSource:{ | |
type:"odata-v4", | |
transport:{ | |
read:"http://services.odata.org/V4/Northwind/Northwind.svc/Orders" | |
}, | |
pageSize:15, | |
serverPaging:true | |
}, | |
pageable:true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#grid").kendoGrid({ | |
dataSource:{ | |
type:"odata-v4", | |
transport:{ | |
read:"http://services.odata.org/V4/Northwind/Northwind.svc/Orders" | |
}, | |
pageSize:15, | |
serverPaging:true | |
}, | |
pageable:true, |