or
$(
"#SearchFor"
).kendoAutoComplete({
minLength: 2,
dataTextField:
"FullText"
,
dataSource:
{
type:
"json"
,
serverFiltering:
true
,
serverPaging:
true
,
pageSize: 20,
filter:
{
field:
"FullText"
,
operator:
"contains"
,
value: $(
"#SearchFor"
).val()
},
schema:
{
data:
"data"
,
count:
"count"
},
transport:
{
read: applicationPath() +
"/Home/SearchForStuff"
}
}
});
@(
try
{
@Html(.Kendo().Grid(Model)
// etc.
)
}
catch
(Exception e)
{
@Html.Raw(
"<pre>"
+ e +
"</pre>"
);
}
)