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

Multi-column headers

1 Answer 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Niddal
Top achievements
Rank 1
Niddal asked on 04 Mar 2021, 07:28 AM

Hi,

how to find the selected cell header column name from the below example.

 

https://demos.telerik.com/aspnet-mvc/grid/multicolumnheaders

 

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 08 Mar 2021, 02:42 PM

Hi Niddal,

The headers can have two actions associated with them:

  • sorting - that happens when you click a header cell. You can see one way to get data about sorting in the grid here - through a dedicated event. For the MVC helpers, you use the same approach - capturing a JS event.
  • hover - when the mouse pointer enters the header cell area. There isn't specific API exposed for this, but you can use jQuery to handle hover events for the th elements and get their inner text.

There isn't a selection feature for that, however. If I am missing something, please provide some more details on the grid feature you are using so I can offer a more concrete answer.

 

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/.

Tags
Grid
Asked by
Niddal
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or