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. Image for the cookie policy date

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

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))

1 Reply

RU Ragavee U S Syncfusion Team 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

Live Chat Icon For mobile
Up arrow icon