Append item to ListView and Refresh the ListView viewable items

2 posts, 0 answers
  1. Idan
    Idan avatar
    76 posts
    Member since:
    Oct 2012

    Posted 30 Oct 2013 Link to this post

    I am having problem with adding new items to the ListView.

    I have the following:

    var data_source = new kendo.data.DataSource({
     data: [
             {id: "1", title: "Monday meetingb1", count: 0 },
             { id: "2", title: "Monday meeting2", count: 0 }
           ]
    });


    I initialized the ListView with the dataSource, appendOnRefresh: false and autoBind: true.

    How do I add a new item to the dataSource and force the ListView to refresh it's items in the list? (append and refresh doesn't work for me)
  2. Jordan
    Admin
    Jordan avatar
    197 posts

    Posted 01 Nov 2013 Link to this post

    Hi Idan,

    It has to update automatically when you add() new items to DataSource. I prepared a short sample here for you. Let me know if this is what you need?

    Just hit the +Add button in footer few times.

    Regards,
    Jordan
    Telerik
    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
Back to Top