I'm working with an old version of KendoUI (v2013.2.716) and TypeScript (v 0.9.5). I would update, but everything breaks and I'm on a tight deadline. Will do that later.
Anyway, I'm using the DefinitelyTyped kendo.d.ts
and everything was fine until I tried this:
var grid = $('.k-grid').data('kendoGrid');
grid.dataSource.transport.options.read.url = newDataSource;
grid.dataSource.read();
This works fine, but Visual Studio doesn't like it. I get:
The property 'transport' does not exist on value of type 'kendo.data.DataSource'
I've had issues like this before and pretty sure I can make a custom.d.ts
file to work around this error, but not sure how. Does anyone know how I can create a workaround?