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))
)