Grid custom buttons

1 Answer 22 Views
Grid
Chris
Top achievements
Rank 1
Chris asked on 30 May 2024, 08:10 PM | edited on 31 May 2024, 01:03 PM
I am using Kendo Angular grid and have a column containing multiple buttons. These buttons are custom angular components. I am using [navigable]="true". How can I make these buttons be part of the navigation?
 

1 Answer, 1 is accepted

Sort by
0
Accepted
Martin Bechev
Telerik team
answered on 31 May 2024, 07:36 AM

Hi Chris,

The following article covers that topic:

https://www.telerik.com/kendo-angular-ui/components/grid/keyboard-navigation/#toc-basic-concepts

Apply the kendoGridFocusable directive to the button in order to focus the button instead the cell.

Regards,
Martin Bechev
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Chris
Top achievements
Rank 1
commented on 31 May 2024, 12:35 PM

How and where do I put it? I tried attaching this directive to both the custom component and to the button inside it and neither works. Here is a StackBlitz demonstrating the problem: https://stackblitz.com/edit/angular-phpipy?file=src%2Fapp%2Fapp.component.ts,src%2Fapp%2Fcustom-button.ts
Martin Bechev
Telerik team
commented on 05 Jun 2024, 07:47 AM

Hi Chris,

In this case, the user needs to enter the cell, using the 'Enter' key:

https://www.telerik.com/kendo-angular-ui/components/grid/keyboard-navigation/#:~:text=The%20user%20can,the%20cell%20first.

This is required because the cell contains more than one focusable element:

https://stackblitz.com/edit/angular-phpipy-ffwzba

Regards

 

 

Tags
Grid
Asked by
Chris
Top achievements
Rank 1
Answers by
Martin Bechev
Telerik team
Share this question
or