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 make Dropdownlist enabled for Adding and disabled for Editing in grid?

Solution:-

 

We can select items from dropdownList while on Adding and make readonly on Editing using actionComplete event of the Grid. In the actionComplete event we have disable the dropdownList using disable method.

 

The following code example demonstrates how to select items from dropdownList while on Adding and make read only on Editing.

 

1. Render the Grid with actionComplete event.

 

JS

 

 

MVC

 

 

ASP

 

ASP.NET Core

 

Angular

 

2. In the actionComplete event of the Grid, while args.requestType as “beginEdit” we have set the disable method of DropdownList to make readonly and select items from dropdownList while adding the records.

 

Output Screenshot:

Img1:  While adding the records

Img2:  While Editing the Records

Sample Link:-  http://jsplayground.syncfusion.com/wvyvg2zs

 

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
9027 07/26/2018 07/26/2018 JavaScript ejGrid
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