Unplanned
Last Updated: 02 May 2023 16:04 by ADMIN
Werner
Created on: 02 Mar 2020 08:37
Category: Grid
Type: Feature Request
25
HeaderTemplate for a command column
I would like to put my "Add new record" button there (which requires this) so that I don't have to use the toolbar - this will let me conserve vertical space.
4 comments
Peter
Posted on: 11 Jan 2023 12:53

Marin

If you had a different component GridCommandColumnWithHeader then we could use that without breaking GridCommandColumn.

I would like this same functionality for the same reason - I want my "New" button in the column header.

ADMIN
Marin Bratanov
Posted on: 25 Feb 2021 19:19

Hello Chris,

We are hoping there will be a way to avoid a breaking change. This may or may not be possible and it will become clear when this is evaluated in more detail and the required research is done.

The possible workaround for the time being is to use a "regular" column without a Field, and its own templates. You could then invoke the built-in grid commands through its state, you can read more about this (and find examples) here. You might want to Follow that item as well.

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

Chris
Posted on: 25 Feb 2021 17:32

Could there possibly be a derived class that implements this, so that it wouldn't be a breaking change?

It'd be nice if there was a column class for GridCommandButtons that featured parity with GridColumn's optional templates.

Alternatively, is there a possible work-around with GridColumn?

ADMIN
Marin Bratanov
Posted on: 02 Mar 2020 08:42

To add a little context - this will require a breaking change - at the moment the command buttons are defined in an unnamed RenderFragment in the command column, and there can only be one in this setup. To add a header template, we need a second RenderFragment, which means changing the way command buttons are to be defined.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor