or
var
myData = [];
$(
'#MyListView'
).kendoListView({
dataSource: myData,
template: myTemplate,
dataBinding:
function
(e) {
for
(
var
i = 0; i < e.items.length; i++) {
kendo.fx($(
'div[data-uid="'
+ e.items[i].uid +
'"]'
)).fade(
'in'
).play();
// THIS DOES NOT WORK.
}
}
});
myData.push(
'Test data item'
);
// SHOWS UP IN THE DIV, BUT DOES NOT FADE IN.
public
JsonResult JsonIndex()
{
//var allCompanies = _db.Companies;
var allCompanies = from c
in
_db.Companies
select
new
{
CompanyName = c.CompanyName,
hasChildren = c.Employees.Any(),
ImageUrl =
"/Images/icons/Employee3_16.png"
,
children = from e
in
c.Employees
select
new
{
CompanyName = e.FirstName,
hasChildren =
false
,
ImageUrl =
"/Images/icons/Company20_16.png"
,
}
};
JsonResult json = Json( allCompanies,JsonRequestBehavior.AllowGet );
return
(json);
}
@(Html.Kendo().TreeView()
.Name("treeview2")
.DataTextField("CompanyName")
.DataImageUrlField("ImageUrl")
.LoadOnDemand(true)
.HighlightPath(true)
.Events( events =>
events.Change( "onTreeViewChange")
)
.DataSource(dataSource => dataSource
.Read(read => read
.Action("JsonIndex", "Home")
)
)
)
$elem.kendoGrid({
dataSource: {
data: obj[acteurParam['prop']] //return my collection
},
});
<
div
class
=
"Part"
>
<
progress
id
=
"ProgressBar"
data-bind
=
"attr: { max: TotalSize, value: TileCount }"
></
progress
>100%
</
div
>
$(document).ready(function () {
$("#memberList").kendoMobileListView({
dataSource: new kendo.data.DataSource({
pageSize: 10,
serverPaging: true,
schema: {
data: "Data",
total: "Total",
model: {
fields: {
CustomerID: { type: "string" },
EmailAddress: { type: "string" },
FirstName: { type: "string" },
LastName: { type: "string" },
MemberID: { type: "string" },
MemberTypeName: { type: "string" },
PlayerTypeName: { type: "string" }
}
}
},
transport: {
read: {
url: "@Url.Action("MemberListRead", "Club")",
type: "POST",
data: {
firstName: $('input[name="FirstName"]').val(),
lastName: $('input[name="LastName"]').val()
}
}
}
}),
template: kendo.template($("#memberTemplate").html()),
loadMore: true
});
});