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

Angular Kendo Grid Title above Toolbar

2 Answers 899 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 26 Mar 2016, 12:52 AM

Hello,

 

I would like to add a title to my Angular Kendo Grid above the toolbar. Something like an <h1> but a part of the grid itself.

I have seen some examples online and on the forums where users were adding title to non-Angular grids. But I would like to add it to my Angular grid right above the Toolbar. Also, why is the title not a default option?

 

Here is a dojo sample. Please modify this and show us how to do it.

http://dojo.telerik.com/OFAwu

 

Development details:

OS: Windows 8.1

Kendo UI: 2016.1.226

Browser: Chrome 49, Firefox 45, IE 11

 

Thanks for your time.

 

Thanks,

Rahul

2 Answers, 1 is accepted

Sort by
0
Rahul
Top achievements
Rank 1
answered on 26 Mar 2016, 01:11 AM

I was able to show it like this. Is there a cleaner way to do it?

I am new to UI development. :(

 

$(document).ready(function () {
    $(".k-grid-toolbar").prepend("<div class='gridTitle'><h1>Grid Title</h1></div>");    
});

 

Updated dojo sample:

http://dojo.telerik.com/OFAwu/3

 

Thanks,

Rahul

 

0
Daniel
Telerik team
answered on 30 Mar 2016, 05:50 AM
Hello,

You can use a toolbar template in order to add a title to the toolbar - updated example.

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