This is a migrated thread and some comments may be shown as answers.

TypeScript definition file correction

1 Answer 82 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Seyfor
Top achievements
Rank 1
Seyfor asked on 07 Oct 2016, 08:18 AM

I think columns need correction for GridColumn interface:

interface GridColumn {
        aggregates?: any;
        attributes?: any;
        columns?: any;   //I think this should be GridColumn[] not any
        command?: GridColumnCommandItem[];
        encoded?: boolean;
        field?: string;
        filterable?: boolean|GridColumnFilterable;
        footerAttributes?: any;
        footerTemplate?: string|Function;
        format?: string;
        groupable?: boolean;
        groupHeaderTemplate?: string|Function;
        groupFooterTemplate?: string|Function;
        headerAttributes?: any;
        headerTemplate?: string|Function;
        hidden?: boolean;
        locked?: boolean;
        lockable?: boolean;
        minScreenWidth?: number;
        sortable?: boolean|GridColumnSortable;
        template?: string|Function;
        title?: string;
        width?: string|number;
        values?: any;
        menu?: boolean;
    }

1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 11 Oct 2016, 08:47 AM
Hello Matjaž,

Thank you for reporting this.

I can confirm that the type should be GridColumn[] instead of any.

We will address this in a future release. For now, I can suggest manually changing it from any to GridColumn[].

Regards,
Stefan
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Grid
Asked by
Seyfor
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or