It is unclear how do you add the items. The recommended approach is to use the DataSource methods (for example add
). In this way the ListView will automatically refresh to add the new item.
In addition please use the checked property of the checkbox input, not the value. As an example:
#= (checked) ? '
' : '' # />
As a general information, the widgets that are used to display data are refreshed automatically when their dataSource changes. Another important thing is that the template provides one-way binding
. This means that when the user changes the state of the check box the underlying dataSource item will not change automatically. If that is your aim please hook up to the change event
of the check box and set the values manually. The methods you might find helpful are: getByUid
(to get the dataItem) and set
(to set the new value).
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI