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
>