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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to show DropDown with CRUD action list instead of showing individual items in toolbar?

How to show DropDown with CRUD action list instead of showing individual items in toolbar?How to show DropDown in toolbar with CRUD operations instead of rendering toolbar icons.

This Knowledge Base explains the way, to place the dropdown by customizing the toolbar and to perform CRUD operations based on the selected item from the dropdown instead of showing individual items in toolbar.instead of rendering the default toolbar icons.

 

HTML

 

JS

 

Razor

 

C#

 

 

ASPX

 

Using the create event of dropdown, we can disable some of the items like update, cancel at the initial load of dropdown as like it is done in the default toolbar icons of grid at the initial rendering

In the change event of dropdown, based on args.text value perform the CRUD operations with using some CRUD public methods of grid.

Example:

 In the change event of dropdown, for adding the a new row for grid it is enough to call the addRecord method of grid when args.text contains value is “add”.

 

C:\Users\Manisankar.durai\Desktop\sshot-1.png

Figure 1: Aadding the Data/Rows to the grid using dropdown.

C:\Users\Manisankar.durai\Desktop\sshot-2.png

Figure 2: Shown alert message when editing the grid without selecting any rows.

C:\Users\Manisankar.durai\Desktop\sshot-3.png

Figure 3: Normal Editing in grid and also disables the remaining items in dropdown which are not necessary to show.

Article ID: Published Date: Last Revised Date: Platform: Control:
7173 12/16/2016 12/27/2016 JavaScript ejGrid
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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