<div data-bind="dxList: { dataSource: Accounts(), itemTemplate: 'listItem'}">
<div data-bind="dxAction: '#accountInfo/{id}'" data-options="dxTemplate : { name: 'listItem' } ">
<p data-bind="text: FullName"></p>
<p data-bind="text: Age"></p>
<p data-bind="text: Office"></p>
</div>
</div>
dataSource = new DevExpress.data.DataSource({
store: Test.db.Users,
expand: ["Accounts"],
map: function(item) {
return new Test.Users_GroupViewModel(item);
}
});
return {
dataSource: dataSource