kendo-vue icon indicating copy to clipboard operation
kendo-vue copied to clipboard

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

Open matt-p-nuq opened this issue 6 months ago • 1 comments

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.

matt-p-nuq avatar May 28 '25 18:05 matt-p-nuq

Thank you for reporting the issue. It is a valid feature request and we will have it in mind when planning our next improvement features.

zdravkov avatar Jun 03 '25 13:06 zdravkov