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

Focus Kendo Grid Column Headers

1 Answer 307 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ravdeep
Top achievements
Rank 1
Ravdeep asked on 29 May 2017, 10:36 AM
Hi,
I want to focus on the kendo Column names rather than the data in the kendo grid.
I tried using $('#grid').data("kendoGrid").table.focus(); it only focuses the data of the first column and first row. When no data is present I am unable to focus on the table.
Need a way to focus on kendo grid even when it has no data. Please provide me a code snippet for the same.

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 30 May 2017, 02:58 PM
Hello Ravdeep,


Actually the grid creates two tables. One for the header and one for the body of the grid. In order to focus the header it is necessary to specify that you want the header table to be focused not the body table. The following dojo illustrates how to achieve that.



Regards,
Georgi
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Ravdeep
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or