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

datasource.read()

3 Answers 442 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Kakone
Top achievements
Rank 1
Kakone asked on 22 Mar 2012, 11:49 AM
Hello,

Normally, if I look at the documentation, the datasource will not contain any data until a read is called. But, in my program, I don't call the read() method and the datasource is filled. How can I disable this automatic reading ?

Cordially,
Kakone.

3 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 22 Mar 2012, 01:35 PM
Hi Kakone,

I suspect that there are KendoUI widget(s) attached to the DataSource in question. As you may know KendoUI widgets will automatically populate themselves during initialization, thus they will populate the DataSource if it is not already populated. In order to disable this automatic binding behavior you should set widget's autoBind options to false.

Greetings,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Kakone
Top achievements
Rank 1
answered on 22 Mar 2012, 05:54 PM
Hi,

In fact, I use a Kendo UI Mobile ListView. Apparently, there is no autobind option with the mobile listview. So, the datasource is always populated ;-(

Cordially,
Kakone.
0
Accepted
Rosen
Telerik team
answered on 23 Mar 2012, 09:36 AM
Hello Kakone,

Unfortunately, you are correct, currently there is not such options for our mobile widgets. However, we will consider adding this for a future version of the library.

Regards,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Data Source
Asked by
Kakone
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Kakone
Top achievements
Rank 1
Share this question
or