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.

how to change dropdown datasource while editing

How to change the dropdown data source while editing?

We can change the Dropdown data source while editing the Grid instead of default data source. This can be achieved by using actionComplete event in Grid. The following code example demonstrates how to change the dropdown data source while editing.

 

JS

 

MVC

 

ASP

 

actionComplete event

 

The following screenshot display the new Dropdown data source while editing the Grid.

Figure 1: Output

Article ID: Published Date: Last Revised Date: Platform: Control:
7524 03/01/2017 03/01/2017 JavaScript ejGrid
Did you find this information helpful?
Comments
William Miller Aug 02, 2018

This gets me 90% of the way there but then you use "$("#GridEmployeeID")".  Where does GridEmployeeID come from?  Is this something that Syncfusion creates?  If so then how are we supposed to know what the drop-down-list will be named?

Reply
Alan Sangeeth S [Syncfusion] Aug 02, 2018

Hi William,

 "$("#GridEmployeeID")". is the id dropdown element which is the combination of Grid id and column field name.

Regards,
Alan Sangeeth S

Reply
Add Comment
You must log in to leave a comment

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.