TypeScript definition file correction

2 posts, 1 answers
  1. Matjaž
    Matjaž avatar
    82 posts
    Member since:
    Jul 2015

    Posted 07 Oct 2016 Link to this post

    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;
        }

  2. Answer
    Stefan
    Admin
    Stefan avatar
    356 posts

    Posted 11 Oct 2016 Link to this post

    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.
     
Back to Top