From fbe6fe9eece4b1115348ac9c33b1cef614a0b5ce Mon Sep 17 00:00:00 2001 From: me Date: Wed, 9 Mar 2016 15:50:52 +0000 Subject: [PATCH 1/2] According to the documentation, the toolbar property can take a string, function, or array of GridToolbarItem as it's value. The current definition file only allows for an array of GridToolbarItem. see: http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-toolbar --- kendo-ui/kendo-ui.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kendo-ui/kendo-ui.d.ts b/kendo-ui/kendo-ui.d.ts index f1a72d57c..121ead425 100644 --- a/kendo-ui/kendo-ui.d.ts +++ b/kendo-ui/kendo-ui.d.ts @@ -4438,7 +4438,7 @@ declare module kendo.ui { scrollable?: GridScrollable; selectable?: boolean|string; sortable?: GridSortable; - toolbar?: GridToolbarItem[]; + toolbar?: string | ((...args) => string) | GridToolbarItem[]; cancel?(e: GridCancelEvent): void; change?(e: GridChangeEvent): void; columnHide?(e: GridColumnHideEvent): void; From a3e861ee3d46582d1fb53b41b075d91d66c82069 Mon Sep 17 00:00:00 2001 From: me Date: Wed, 9 Mar 2016 16:43:20 +0000 Subject: [PATCH 2/2] GridOptions does not contain the correct definition of the toolbar property According to the documentation, the toolbar property can take a string, function, or array of GridToolbarItem as it's value. The current definition file only allows for an array of GridToolbarItem. see: http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-toolbar --- kendo-ui/kendo-ui.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kendo-ui/kendo-ui.d.ts b/kendo-ui/kendo-ui.d.ts index 121ead425..b558a4f36 100644 --- a/kendo-ui/kendo-ui.d.ts +++ b/kendo-ui/kendo-ui.d.ts @@ -4438,7 +4438,7 @@ declare module kendo.ui { scrollable?: GridScrollable; selectable?: boolean|string; sortable?: GridSortable; - toolbar?: string | ((...args) => string) | GridToolbarItem[]; + toolbar?: string | ((...args:any[]) => string) | GridToolbarItem[]; cancel?(e: GridCancelEvent): void; change?(e: GridChangeEvent): void; columnHide?(e: GridColumnHideEvent): void;