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.
     Thanks.
  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2595 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>
    </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!
  3. Kendo UI is VS 2017 Ready
Back to Top