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

how to empty the datasource contents

1 Answer 451 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 10 Jun 2012, 08:20 AM
I am doing a cache based grid application and what i want to do is feed the datasource with the cached data if that request is cached and then refresh the widgets. I have tried several things including the desperate loop all data and remove() but that doesn't work because for some reason i only removes certain elements. Any ideas on this?

1 Answer, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 10 Jun 2012, 08:37 AM
dataSource.data({obj}); does the trick. This documentation requires some serious work!
Tags
Data Source
Asked by
Michael
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Share this question
or