are you sure you are referencing the igntieui.d.ts correctly.
Can you send is an isolated example demonstrating the error?
I have attached the sample below.
Thank you for the sample, it helped a lot.
The reason for this is that data("igGrid") is returning IgGridMethods and the dataSource property is not part of those methods.
I would suggest using the option dataSource:
let ds: any = $("#grid").igGrid("option", "dataSource");
return "Count:" + ds.length;
But note that this will return the whole data. If your application scenario has features involved and you need the dataView then the following will be more appropriate:
let ds: any = $("#grid").data('igGrid')["dataSource"];
return "Count:" + ds.dataView().length;
var grid = $('#Grid');
var comboDataSource = grid.data('igGridUpdating').options.columnSettings.editorOptions.dataSource);
What about using editorForKey API method?
How can I use editorForKey in TypeScript for getting Combo's datasource ?
The following code snippet demonstrates the usage of editorForKey API method:
let combo: any = $("#grid").data('igGridUpdating').editorForKey("combo");
let comboDS = combo.igCombo("option", "dataSource");
Let me know if you need more information.