Unplanned
Last Updated: 02 Mar 2021 17:08 by ADMIN
Imported User
Created on: 05 Nov 2013 14:51
Category: Kendo UI for jQuery
Type: Feature Request
25
Generic versions of DataSource and ObservableArray in TypeScript
Please add generic versions of DataSource and ObservableArray to the TypeScript definitions file.
3 comments
ADMIN
Joana
Posted on: 07 Dec 2018 18:05
Hello,

The Kendo UI Typescript definitions are part of the public Kendo UI repository. Thus, if any of the definitions are currently missing, you could contribute following the below guidelines:

https://github.com/telerik/kendo-ui-core#how-to-contribute

https://github.com/telerik/kendo-ui-core/tree/master/typescript

Let me know if you have any further questions.

Regards,
Joana
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.
Joshua
Posted on: 30 Nov 2018 22:51
+1
Morten
Posted on: 15 Aug 2016 16:12
Also for kendo.ui.GridOptions - and everywhere. Thanks.

It's not hard.
Here's a bit to get you started:

export interface IGenericGridColumn<TModel> extends kendo.ui.GridColumn {
	template?: ((dataItem: TModel) => string)|string;
}

export interface IGenericGridOptions<TModel> extends kendo.ui.GridOptions {
	columns?: IGenericGridColumn<TModel>[];
	detailTemplate?: ((dataItem: TModel) => string)|string;
}

export interface IGenericKendoGrid<TModel> extends kendo.ui.Grid {
	getOptions(): IGenericGridOptions<TModel>;
	columns: IGenericGridColumn<TModel>[];
}