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

Append item to ListView and Refresh the ListView viewable items

1 Answer 204 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Idan
Top achievements
Rank 1
Idan asked on 30 Oct 2013, 02:20 PM
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)

1 Answer, 1 is accepted

Sort by
0
Jordan
Telerik team
answered on 01 Nov 2013, 04:19 PM
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.
Tags
General Discussions
Asked by
Idan
Top achievements
Rank 1
Answers by
Jordan
Telerik team
Share this question
or