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

Standard commands in Toolbar template

2 Answers 312 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 27 Jun 2016, 09:41 PM

Is there an easy way to use the toolbar.Create() and toolbar.Save() builders in the toolbar template.

I want to add a dropdown for filtering while maintaining the default buttons.

I see no way to get toolbar.Create() to send me it's rendered text to add to the template??

Basically I want to duplicate something like this demo http://demos.telerik.com/kendo-ui/grid/toolbar-template but still have the standard add/save buttons in the toolbar as well.

 

 

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Ianko
Telerik team
answered on 29 Jun 2016, 08:46 AM
Hi Bob,

You can just put a button in the template with a class name corresponding to the command. For example for toolbar.Create() use class name k-grid-add

You can simplify the task by setting up a grid with the needed built-in commands and take the HTML that is rendered in the toolbar. 

You can see an example for that here: http://dojo.telerik.com/AmayI.

Regards,
Ianko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Bob
Top achievements
Rank 1
answered on 29 Jun 2016, 01:31 PM

Yes, thanks. That's what I ended up doing.

 

Tags
Grid
Asked by
Bob
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Bob
Top achievements
Rank 1
Share this question
or