kendo-vue
kendo-vue copied to clipboard
Kendo Grid: Infer type of data-items based on usage
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.
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.