This is a migrated thread and some comments may be shown as answers.

How to navigate to particular column/set focus to cell in kendo non editable grid

2 Answers 1564 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gangadhar
Top achievements
Rank 1
Gangadhar asked on 13 Dec 2019, 01:29 PM
I have a grid with n number of columns with horizontal scrolling and would like to navigate to particular column using column name/focus to a first cell of the column once grid is rendered, so how to navigate to particular column/set focus to cell in kendo non editable  grid? Thanks.

2 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 17 Dec 2019, 08:59 AM

Hi Gangadhar,

To scroll the Grid to a particular cell, the focusCell method can be used. It accepts two parameters - rowIndex and colIndex. Here is an example of a Grid with a horizontal scrollbar, where the grid is scrolled initially to the center. Also, there is a button which navigates the grid to the end:

https://stackblitz.com/edit/angular-7wthwr?file=app%2Fapp.component.ts

I want to note that the Grid needs to be navigable in order to use the focusCell method.

I hope this helps. Let me know if I can provide any further assistance with this case.

Regards,
Martin
Progress Telerik

Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Gangadhar
Top achievements
Rank 1
answered on 17 Dec 2019, 04:25 PM
Thanks much Martin for the help. it works.
Tags
Grid
Asked by
Gangadhar
Top achievements
Rank 1
Answers by
Martin
Telerik team
Gangadhar
Top achievements
Rank 1
Share this question
or