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

Personalize toolbar grid options

Thread ID:





119149 May 14,2015 03:59 PM UTC May 15,2015 01:56 PM UTC ASP.NET MVC 1
Tags: Grid
Juan Peiró Llobet
Asked On May 14, 2015 03:59 PM UTC



We are using version of MVC and we would like to know, how is possible personalize the toolbar grid (ToolBarItems) and add new functions.

Best regards

Balaji Marimuthu [Syncfusion]
Replied On May 15, 2015 01:56 PM UTC

Hi Juan,

Thanks for using Syncfusion Products.

We have achieved your requirement by using the CustomToolbarItem property in Grid.

Please find the sample and code snippet below.
Sample: GridMvc_-customize_toolbar.zip



.EditSettings(edit => { edit.AllowAdding().AllowDeleting().AllowEditing(); })

.ToolbarSettings(toolbar =>


toolbar.ShowToolbar().ToolbarItems(items =>








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


. . . . .

.ClientSideEvents(eve => { eve.ToolbarClick("onToolBarClick"); })


<script type="text/javascript">

function onToolBarClick(sender) {

var tbarObj = $(sender.target);

if (tbarObj.hasClass("refresh"))

this.refreshContent(); // bindng function to the custom toolbar items



<script id="Refresh" type="text/x-jsrender"> @*Render custom toolbar*@

<a id="refreshButton" class="e-toolbaricons e-icon">

<img class="refresh" src="../../Content/ej/images/refresh.png" width="20" height="24" />



By using Custom Toolbar we can customize the toolbar elements and the corresponding actions are performed in the ToolbarClick event.

Please refer the online documentation for further details regarding customize the toolbar items from the following link:

Please let us know if you require further assistance on this.

Balaji Marimuthu


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

or the page will be automatically redirected to 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