Skip to content

Instantly share code, notes, and snippets.

View lohithgn's full-sized avatar

Lohith lohithgn

View GitHub Profile
@lohithgn
lohithgn / link.cshtml
Created August 15, 2016 18:24
Kendo UI Core StyleSheet reference
@lohithgn
lohithgn / bower.json
Last active August 15, 2016 17:43
ASP.NET Core Web App bower.json
{
"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"
}
@(Html.Kendo().Grid<Order>()
.Name("grid")
@*...*@
.Filterable(filterable => filterable.Operators(operators =>
{
operators.ForDate(options =>
{
options.Clear();
options.IsGreaterThanOrEqualTo("From Date");
options.IsLessThanOrEqualTo("To Date");
@(Html.Kendo().Grid<Order>()
.Name("grid")
@*...*@
.Filterable()
@*...*@
)
@(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");
});
@(Html.Kendo().Grid<Order>()
.Name("grid")
)
$("#grid").kendoGrid({
//...
filterable:{
operators:{
date:{
gte:"From Date",
lte:"To Date"
}
}
},
$("#grid").kendoGrid({
dataSource:{
type:"odata-v4",
transport:{
read:"http://services.odata.org/V4/Northwind/Northwind.svc/Orders"
},
pageSize:15,
serverPaging:true,
schema:{
model:{
$("#grid").kendoGrid({
dataSource:{
type:"odata-v4",
transport:{
read:"http://services.odata.org/V4/Northwind/Northwind.svc/Orders"
},
pageSize:15,
serverPaging:true
},
pageable:true,
$("#grid").kendoGrid({
dataSource:{
type:"odata-v4",
transport:{
read:"http://services.odata.org/V4/Northwind/Northwind.svc/Orders"
},
pageSize:15,
serverPaging:true
},
pageable:true,