Unplanned
Last Updated: 24 Nov 2020 14:52 by ADMIN
Lee Hansel
Created on: 18 Nov 2020 07:17
Category: KendoReact
Type: Feature Request
2
Kendo Grid - Type-safety on Typescript

Hi,

 

Good day!

 

Thanks for this wonderful library - we actually have a paid license in using ReactKendo.

Just a concern, because right now we are using TypeScript for us to improve our code quality but most of the Components in KendoReact is using any and not even allowing to pass a generic type.

 

Like for example in using KendoGrid - the data has `any` property so when rowClick is triggered, it returns `any` data type for `dataItem`

 

So what I did was, I wrapped the KendoGrid Component that would allow Type-Safety and override the `onRowClick` and any other functions that involve sending `dataItem` property.

 

Thanks!


 

Best Regards,

Lee

 

3 comments
ADMIN
Vasil
Posted on: 24 Nov 2020 14:52

Hello Lee,

If you decide to spend time looking at the code, please open a regular support ticket with the suggested changes and we will ensure you get some more telerik points.

Regards,
Vasil
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Lee Hansel
Posted on: 24 Nov 2020 14:40

Hi Vasil,

 

Thanks a lot for taking this into consideration. our team really appreciates it.

 

Also if you are open for contributions, I am up for any challenge!

 

Best Regards,

Lee

ADMIN
Vasil
Posted on: 24 Nov 2020 14:35

Hello Lee,

Thank you for the request, this sounds something we will definitely look into future. You can track it here as well: https://github.com/telerik/kendo-react/issues/792

Regards,
Vasil
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.