We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How would I add Custom AND Standard Tools to the same Toolbar?

Thread ID:





118293 Feb 20,2015 05:42 PM UTC Feb 23,2015 07:21 AM UTC ASP.NET MVC 1
Tags: Grid
Christine Romano
Asked On February 20, 2015 05:42 PM UTC

I need to have both custom and standard toolsets. Could you provide an example with both?                           




.ToolbarSettings(toolBar => toolBar.ShowToolbar().ToolbarItems(items =>






//custom Tool



.PageSettings(settings => settings.PageSize(15).PageCount(7))

Ragavee U S [Syncfusion]
Replied On February 23, 2015 07:21 AM UTC

Hi Christine,

Thanks for your interest in Syncfusion products.

Based on your requirement, we have created a sample with both the standard and custom toolbaritems. The sample can be downloaded from the below location.

Sample Link:  http://www.syncfusion.com/downloads/support/directtrac/118293/GridSample-1223699484.zip

In the above sample, we have rendered both custom and standard toolbar as in the below code snippet.


        . . . . .

        .ToolbarSettings(toolbar =>


            toolbar.ShowToolbar().ToolbarItems(items =>








            .CustomToolbarItems(new List<object>() { new Syncfusion.JavaScript.Models.CustomToolbarItem() { TemplateID = "#Details" } });


        . . . . .



<script type="text/x-jsrender" id="Details">

    <button class="details">Details</button>


With the CustomToolbarItems API of Grid ToolbarSettings, we can add custom elements to the toolbar of the grid. In the above sample, we have added a button to the toolbar which when clicked, an alert message is displayed stating the customToolbar item is clicked.

Please refer the below code snippet.

<script type="text/javascript">

    function create(args) {

        $(".details").ejButton({ text: "Details" });


    function ToolBarClick(sender) {

        if ($target.hasClass("details")) {

           alert("CustomToolbar item clicked");




For more information on the customToolbarItems API of Grid ToolbarSettings, please refer the below online links.

Online documentation link: http://help.syncfusion.com/ug/js/default.htm#!documents/toolbar1.htm

Class reference link: http://help.syncfusion.com/UG/JS_CR/ejGrid.html#toolbarSettings->customToolbarItems

Online Sample Link: http://mvc.syncfusion.com/demos/web/grid/toolbartemplate

Please try the sample and get back to us if you need any further assistance.


Ragavee U S


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon