Focus Kendo Grid Column Headers

2 posts, 0 answers
  1. Ravdeep
    Ravdeep avatar
    1 posts
    Member since:
    May 2017

    Posted 29 May 2017 Link to this post

    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.
  2. Georgi
    Admin
    Georgi avatar
    650 posts

    Posted 30 May 2017 Link to this post

    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.
Back to Top