Unplanned
Last Updated: 30 Mar 2021 15:07 by Craigory
Craigory
Created on: 24 Mar 2021 21:21
Category: Grid
Type: Feature Request
2
CellCloseEvent should be generic for dataItem

Proposal

CellCloseEvent<T> should provide dataItem: T

 

Why

Currently the CellCloseEvent dataItem is typed as any. This could be the default, but adding a generic type here would allow strong typing in the event handler.

2 comments
Craigory
Posted on: 30 Mar 2021 15:07

Anyone wanting this functionality currently can add a file in their project like this:

 

import {CellCloseEvent as KendoCellCloseEventfrom '@progress/kendo-angular-grid';

import {CellClickEventasKendoCellClickEventfrom'@progress/kendo-angular-grid';


export type CellCloseEvent<T> = Omit<KendoCellCloseEvent'dataItem'> & {dataItemT}
export type CellClickEvent<T> = Omit<KendoCellClickEvent'dataItem'> & {dataItemT}
ADMIN
Martin Bechev
Posted on: 29 Mar 2021 15:15

Hi Craigory,

Thank you for the provided feedback.

I have converted this ticket to be a public feature request:

https://feedback.telerik.com/kendo-angular-ui/1512628-cellcloseevent-should-be-generic-for-dataitem

That will help us to track the demand for it and eventually release it in a future version of the package. Thank you in advance.

Regards,
Martin
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/.