Databinding ListView Templates in Grouped Mode

2 posts, 1 answers
  1. Matt
    Matt avatar
    58 posts
    Member since:
    Jun 2009

    Posted 03 Apr 2012 Link to this post

    Hi,

    Binding with template to standard view is clear in docs (as below) but how would I bind to a grouped view?

    <ul id="listview"></ul>

    <script type="text/javascript">
        $
    (document).ready(function() {
            $
    ("#listview").kendoMobileListView({
                template
    : "<strong>${data.foo}</strong>",
                dataSource
    : kendo.data.DataSource.create([{foo: "bar"}, {foo: "baz"}])
           
    });
       
    });
    </script>

    Thanks,
    Matt
  2. Answer
    Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 04 Apr 2012 Link to this post

    Hi,

    This demo shows the needed approach. The sushi sample application also features grouped data binding. 
    Kind regards,
    Petyo
    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