We would like to have the possibilty to create custom implementation of grid columns (or any other control/component). Because we also have this in our WPF projects and it was very useful to minimize the redundant code and also the "initialization code". This can't be done in a simple template, for example we need to inject services and get data etc.. Example: In our WPF project have lots of different grids with values related to units. The cell can convert this unit to and other unit itself, it can localize the texts, it shows the information in some kind of "progress bar", has a tooltip, etc... And all we have to do in the code is to set a column like this <custom-column valueField="test" unitField="test2" />. It would be great to have this feature in the Angular 2 grid as well.
Hi,
We understand the benefit such functionality would provide. However we are limited by the Angular framework in this case. The Grid relies on Angular's ViewChildren query in order to collect all kendo-grid-columns. Thus we will decline this feature request as the kendo-grid-columns should be defined within the kendo-grid in order to be successfully picked up by the Grid.
As a workaround I could suggest using the following custom approach:
https://stackblitz.com/edit/ka-grid-custom-column-ekdfja
but please note that the demonstrated approach isn't officially supported. It isn't thoroughly tested and the configuration may impose some Grid functionalities to behave inconsistently. Thus please use this approach at your own discretion
Regards,
Svet
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
One more example: I wanted to create a custom "action column" that opens a small popup on mouse over containing a few "quick action buttons" and a menu on click with all actions. This column should work the same in all our grids. For now we have to copy and paste a lot of code...