I've got several dataSources on a page. I want one of the dataSources to read on page load, while the others should only read when I tell them to:
When the page loads all dataSources read. What am I doing wrong?
var aDataSource = new kendo.data.DataSource({yaddayaddayadda});var bDataSource = new kendo.data.DataSource({yaddayaddayadda});var cDataSource = new kendo.data.DataSource({yaddayaddayadda});function readDataSources() { bDataSource.read(); cDataSource.read();}; $(document).ready(function () { $("#aGrid").kendoGrid({ dataSource: aDataSource, autobind: true }); $("#bGrid").kendoGrid({ dataSource: bDataSource, autobind: false }); $("#cGrid").kendoGrid({ dataSource: cDataSource, autobind: false });})When the page loads all dataSources read. What am I doing wrong?