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

Getting reference to toolbar and add extra button

1 Answer 525 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pieter
Top achievements
Rank 1
Pieter asked on 18 Jul 2016, 12:29 PM

Hi,

Is it possible to get a reference to an existing toolbar (created by a template) on the grid and add a button to the toolbar? For clarity, just changing the toolbar template isn't an option for now.

Regards,

Pieter

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 19 Jul 2016, 03:00 PM
Hi Pieter,

You can use the following class to select the Grid toolbar:

.k-grid-toolbar

If you want to specify the specific Grid whose toolbar has to be accessed, the corresponding Grid element has to be added to the selector:

#grid .k-grid-toolbar

After getting the toolbar element, you can append/prepend the new element to it via JavaScript/jQuery:

http://dojo.telerik.com/oCuPU/2

I hope this helps.

Regards,
Dimiter Topalov
Telerik by Progress
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Tags
Grid
Asked by
Pieter
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or