Skip to content

Kendo Grid: Infer type of data-items based on usage #704

@matt-p-nuq

Description

@matt-p-nuq

I would like to request a feature that enables TypeScript type inference for the dataItems prop in the Kendo Grid component. Currently, the prop is typed as:

dataItems: PropType<any[] | DataResult>;

This typing loses all the benefits of TypeScript’s strong typing and autocomplete. In real-world scenarios, we almost always know the type of the data being passed to the grid, and having to cast or work with any defeats the purpose of using TypeScript.

Proposed Enhancement:

Introduce generics to the Kendo Grid component to allow the type of dataItems to be inferred based on the generic type passed to the Grid.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions