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

Need static row at top of grid

1 Answer 525 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Aaron
Top achievements
Rank 1
Aaron asked on 12 Oct 2015, 06:09 PM

One of the requirements for a project I'm working on is to have a static row at the top of a kendo grid.  This row will show data that is to be compared with other rows in the grid.  What would be the easiest way to go about having this row get into the grid and have it remain at the top of the grid regardless of the sort?  Client side sorting is turned on as of now.

 Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 14 Oct 2015, 09:53 AM
Hello Aaron,

Although that such functionality is not available out-of-the-box, you can try to use the approach demonstrated in the following dojo example:
As you will notice, we are handling the dataBound event and we are cloning the first item found in the grid and we are appending it in the header. Afterwords, we are setting the custom text to each cell of that static item.

You can also try to work with the headerTemplate of the columns:
Hope this helps.


Regards,
Konstantin Dikov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Aaron
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or