aggregates in listview ?

2 posts, 0 answers
  1. Marlon
    Marlon avatar
    1 posts
    Member since:
    Jan 2012

    Posted 17 Apr 2013 Link to this post

    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.
  2. Iliana Nikolova
    Iliana Nikolova avatar
    2622 posts

    Posted 19 Apr 2013 Link to this post

    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>

    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!
Back to Top