or
@(Html.Kendo().DatePicker()
.Name(
"datepicker"
)
.Value(DateTime.Today)
.HtmlAttributes(
new
{style =
"width: 100%;"
})
.Footer(
"Today - #=kendo.toString(data, 'd') #"
)
.MonthTemplate(
"# if ($.inArray(+data.date, events) != -1) { #"
+
"<div class='"
+
"# if (data.value > 0) { #"
+
"order"
+
"# } #"
+
"'>#= data.value #</div>"
+
"# } else { #"
+
"#= data.value #"
+
"# } #"
))
var
today =
new
Date(),
events = [];
$.ajax({
url:
"GetOrderDates?shipOrderNbr="
+ $(
"#shiporder"
).val(),
dataType:
"json"
,
success:
function
(result) {
events = []; //clear the array of any preexisting dates that may have been loaded
$.each(result,
function
(index, value) {
events.push(
new
Date(value)); //01/01/2015, etc
});
}
});
public
class
Family{
public
int
Id {
get
;
set
;}
public
string
FamilyName {
get
;
set
;}
public
int
StreetId {
get
;
set
;}
}
public
class
Street {
public
int
Id {
get
;
set
;}
public
string
StreetName {
get
;
set
;}
}
<div
class
=
"col-lg-12"
>
@(Html.Kendo().Grid<Order>()
.Name(
"orderGrid"
)
.Columns(columns =>
{
columns.Bound(order => order.OrderNo).Title(
"Order no."
);
columns.ForeignKey(order => order.Status.Description, Model.StatusList,
"Description"
,
"Description"
).Title(
"Status"
);
}
)
.Filterable(filter => filter.Enabled(
true
).Mode(GridFilterMode.Menu))
.AutoBind(
true
)
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action(
"GetOrders"
,
"OrderSurface"
))
)
)
</div>
public
class
SysUnit : BaseModel
{
public
string
Name {
get
;
set
; }
public
string
Prefix {
get
;
set
; }
public
SysUnitGroup SysUnitGroup {
get
;
set
; }
}
public
enum
SysUnitGroup
{
Money,
Length,
Weigh,
}
http://localhost:63455/api/data/gethistory?$top=5&$filter=(Id+eq+1+and+PaymentId+eq+11)
http://localhost:63455/api/data/gethistory?$top=5&$filter=(Id+eq+1+and+PaymentId+gt+11)
http://localhost:63455/api/data/gethistory?$top=5&$filter=(Id+eq+1+and+PaymentId+lt+11)
http://localhost:63455/api/data/gethistory?$top=5&$filter=(Id+eq+1+and+PaymentId+ge+11)
http://localhost:63455/api/data/gethistory?$top=5&$filter=(Id+eq+1+and+PaymentId+le+11)
http://localhost:63455/api/data/gethistory?$top=5&$filter=(Id+eq+1+and+PaymentId+ne+11)
var filter =
"(TransportProviderId eq 1 and PaymentRequestId ge 5)"
request.Filters = FilterDescriptorFactory.Create(
string
.Join(
"~"
, filter.Split(
' '
)));
{"Message":"An error has occurred.","ExceptionMessage":"Expected RightParenthesis","ExceptionType":"Kendo.Mvc.Infrastructure.Implementation.FilterParserException","StackTrace":" at Kendo.Mvc.Infrastructure.Implementation.FilterParser.Expect(FilterTokenType tokenType)\r\n at Kendo.Mvc.Infrastructure.Implementation.FilterParser.ParseNestedExpression()\r\n at Kendo.Mvc.Infrastructure.Implementation.FilterParser.PrimaryExpression()\r\n at Kendo.Mvc.Infrastructure.Implementation.FilterParser.ComparisonExpression()\r\n at Kendo.Mvc.Infrastructure.Implementation.FilterParser.AndExpression()\r\n at Kendo.Mvc.Infrastructure.Implementation.FilterParser.OrExpression()\r\n at Kendo.Mvc.Infrastructure.Implementation.FilterParser.Expression()\r\n at Kendo.Mvc.Infrastructure.Implementation.FilterParser.Parse()\r\n<
br
>at Kendo.Mvc.Infrastructure.FilterDescriptorFactory.Create(String input)\r\n at RequestModelBinder.BindModel(HttpActionContext actionContext, ModelBindingContext bindingContext)