or
schema: {
model: {
id: "ID",
fields: {
FirstName: { type: "string", from: "Person.FirstName" },
LastName: { type: "string", from: "Person.LastName" },
GroupName: { type: "string" },
}
}
},
@(Html.Kendo().ComboBoxFor(m => m)
.DataTextField("DisplayName")
.DataValueField("Code")
.AutoBind(true)
.DataSource(ds => ds
.Read(read => read.Action("CountryLoading", "Home"))
.ServerFiltering(true)
)
)
function
CommidityFocus(e, upperE, elementName) {
var
combobox = $(elementName).find(
'span'
).children(
'input'
).data(
'kendoComboBox'
);
Combobox.value(
"hurz"
);
// No Reload ?!
combobox.search(
"hurz"
);
// No Reload ?!
combobox.dataSource.read();
// No Reload ?!
}
@( Html.Telerik().Grid<
Orpac.Models.Time
>()
.Name("timecmb")
.NoRecordsTemplate("No users to display")
.DataKeys(keys => keys.Add(k => k.Ident))
.DataBinding(d => d.Ajax().Select("GridTimeBinding", "Rule"))
.Columns(c =>{c.Bound(e => e.Ident).Width(90).ClientTemplate("<
input
type
=
'checkbox'
id
=
'123'
value='<#= Code #>' <#=bit? checked='checked' : '' #> />").Title((string)ViewData["Select"]);c.Bound(e=>e.Code).Width(150).Title((string)ViewData["TimeCode"]);c.Bound(e=>e.Desc).Width(300).Title((string)ViewData["Description"]); })
.ClientEvents(events => events.OnRowDataBound("onrowDataBoundtimepopup").OnDataBound("onDataBoundTimeRule"))
.Selectable()
.Footer(true)
.Sortable()
.Filterable(filtering => filtering.Enabled((bool)ViewData["filtering"]))
.Scrollable(scrolling => scrolling.Height(190))
.Pageable(p=>p.PageSize(10))
)
01.
if (User.Identity.IsAuthenticated)
02.
{
03.
<
script
type
=
"text/x-kendo-tmpl"
id
=
"template"
>
04.
<
div
class
=
"post-view k-widget"
>
05.
<
div
class
=
"edit-buttons"
>
06.
<
a
class
=
"k-button k-button-icontext k-edit-button"
href
=
"\\#"
><
span
class
=
"k-icon k-edit"
></
span
></
a
>
07.
<
a
class
=
"k-button k-button-icontext k-delete-button"
href
=
"\\#"
><
span
class
=
"k-icon k-delete"
></
span
></
a
>
08.
</
div
>
09.
<
div
class
=
"post-header bg-azure"
>
10.
<
p
class
=
"post-title"
>#:Name# </
p
>
11.
<
p
class
=
"post-time"
>#:kendo.toString(CommentDate,'d')#</
p
>
12.
</
div
>
13.
<
div
class
=
"post-msg"
>
14.
#=Comment#
15.
</
div
>
16.
</
div
>
17.
</
script
>
18.
}
19.
else
20.
{
21.
<
p
>You must be logged in to contribute.</
p
>
22.
23.
<
script
type
=
"text/x-kendo-tmpl"
id
=
"template"
>
24.
<
div
class
=
"post-view k-widget"
>
25.
<
div
class
=
"edit-buttons"
>
26.
<
a
class
=
"k-button k-button-icontext k-edit-button disabled"
href
=
"\\#"
><
span
class
=
"k-icon k-edit"
></
span
></
a
>
27.
<
a
class
=
"k-button k-button-icontext k-delete-button disabled"
href
=
"\\#"
><
span
class
=
"k-icon k-delete"
></
span
></
a
>
28.
</
div
>
29.
<
div
class
=
"post-header bg-azure"
>
30.
<
p
class
=
"post-title"
>#:Name# </
p
>
31.
<
p
class
=
"post-time"
>#:kendo.toString(CommentDate,'d')#</
p
>
32.
</
div
>
33.
<
div
class
=
"post-msg"
>
34.
#=Comment#
35.
</
div
>
36.
</
div
>
37.
</
script
>
38.
}
39.
}