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

Clear datasource...

2 Answers 235 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Cagatay
Top achievements
Rank 1
Cagatay asked on 21 Dec 2011, 03:03 PM
Is it possible to delete all the records from datasource with one command ? I've tried dataSource.clear() but it is not working..

Should I apply a loop for deleting all the records ?

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 23 Dec 2011, 08:57 AM
Hello,

 There is no method named clear() and this is the reason it is not working. You need to iterate over the records in order to delete all.

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Cagatay
Top achievements
Rank 1
answered on 23 Dec 2011, 11:37 AM
So, I think you should implement this feature :)
Tags
Data Source
Asked by
Cagatay
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Cagatay
Top achievements
Rank 1
Share this question
or