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 to move the custom tool items in front position of Grid toolbar list?

Platform: ASP.NET Core |
Control: Grid |
Published Date: August 20, 2018 |
Last Revised Date: August 21, 2018

In Grid, items added under the custom toolbar items will displayed after the default toolbar items. This is the default behavior. This can be rearranged and move the custom tools prior to the default toolbar items in the dataBound event of the Grid which has been discussed in this KB.

HTML:

 

JavaScript:

 

Razor:

 

Controller:

 

WebForms:

 

 

.Net Core

 

 

Template and CSS:

 

 

Grid toolbar separated the default items and custom items under two different ul elements. In the databound event, collect all the elements from second ul element (or custom item list). Prepend the required items to the first ul or to the default items.

 

Angular2:

 

TypeScript:

 

Figure 1. Grid with rearranged toolbar items.

2X faster development

The ultimate ASP.NET Core UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

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