This is a migrated thread and some comments may be shown as answers.

aggregates in listview ?

1 Answer 100 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Marlon
Top achievements
Rank 1
Marlon asked on 17 Apr 2013, 04:46 PM
How I can use the "aggregates" in an listview? . If possible, how would I? 

I can see that in a grid itself can by the FooterTemplate property but the listview does not have that property.
 Thanks.

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 19 Apr 2013, 10:49 AM
Hi Marlon,

In order to achieve this you can get reference to the ListView's DataSource and show the aggregates in the template. For example: 
<script type="text/x-kendo-template" id="listViewTemplate">
   //...
   <div>#= $("\#listview").data("kendoMobileListView").dataSource.aggregates().SomeField.sum #</div>
</script>

Kind regards,

Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ListView (Mobile)
Asked by
Marlon
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or