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

Prevent read from DataSource on bind?

1 Answer 284 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Trent
Top achievements
Rank 1
Trent asked on 09 Oct 2018, 02:26 PM

Is there a way to prevent the datasource from doing a read when I use the setDatasource Method? I have a case where I'm using the same datasource for multiple sheets, and each bind is causing a read. 

 

1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 11 Oct 2018, 07:42 AM
Hi Trent,

In order to prevent the DataSource read action you will need to handle its requestStart event:
function(e) onRequestStart {
  e.preventDefault();
}

Here is a small sample implementing the above suggestion.

Regards,
Veselin Tsvetanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Spreadsheet
Asked by
Trent
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Share this question
or