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

Custom grid header.

4 Answers 305 Views
Grid
This is a migrated thread and some comments may be shown as answers.
BobDev
Top achievements
Rank 1
BobDev asked on 08 Nov 2011, 07:07 AM
Hi,

I do not think this is possible, so in that case consider this an enhancement request (or any tips would be appreciated).

I would like to have a customer header in the grid. In your terminology a template for a row to displayed above the column headers (like a grid toolbar).

The items I would want to put in that header template are (so any in-built help would be appreciated):
1. A total row count. Would be nice if that number was easily available (#= RowCount #).
2. A refresh button. So also a simple way to call a refresh on the grid and the data source would be good.
3. Custom buttons (e.g. Copy rows, export rows). Would be nice if I had easy access to an array of selected rows which could be sent to the custom functions.
4. A filter input field that either matched against all values in the grid (local data) or was passed as an argument to the data source and refreshed.

This is all stuff I need to for hundreds of grids, so I'd prefer if was possible to provide as a template to the grid rather than having to render as controls next to the grid.

This is probably applicable as a footer template as well.

4 Answers, 1 is accepted

Sort by
0
Chakrapani
Top achievements
Rank 1
answered on 13 May 2014, 03:38 PM
Any updated on this request. My customer also requesting this kind of feature.

Regards,
Chakri.
0
Sebastian
Telerik team
answered on 13 May 2014, 04:01 PM
Hello guys,

You can utilize the grid's toolbar template for this purpose.

Best regards,
Sebastian
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Chakrapani
Top achievements
Rank 1
answered on 13 May 2014, 04:05 PM
Thank you, can you provide sample code to show the row count and export to excel if possible.

Regards,
Chakri.
0
Sebastian
Telerik team
answered on 14 May 2014, 08:46 AM
Hello again Chakri,

Export to Excel implementation using buttons in the grid toolbar you can find in this code library thread.

To output the row count, you can calculate the total number of rows in the grid data source, and inject this value in the toolbar or assign it to your variable which to be evaluated in the toolbar.

Hope these directions are helpful.

Regards,
Sebastian
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
BobDev
Top achievements
Rank 1
Answers by
Chakrapani
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or