Using DropDownEdit in the Grid

Hello,

How do you initialize values in the dropdown list that is in a cell in the grid?  The values are static, not bound to a database field.  Also need to return the selected value to the controller.  We are using version 

16.2460.0.41

Thanks,

Doug


1 Reply

DM Dineshnarasimman Muthu Syncfusion Team March 4, 2024 03:36 AM UTC

Hi Doug Matulis,


Greetings from Syncfusion Support.


We have reviewed your query and understood that you need to set the custom dataSource to the dropdown edit of a column. In the column.edit property using the params, we can provide the custom dataSource to the dropdown. We have already documented this topic in our documentation. The documentation link has been attached below for your reference.


Documentation: https://ej2.syncfusion.com/aspnetmvc/documentation/grid/editing/edit-types#provide-custom-data-source-and-enabling-filtering-to-dropdownlist


We have also attached the sample and video demonstration implementing the customer dataSource to the dropdown edit of the column in the MVC platform.


Image:


Please find the sample and video demonstration attached below.


Regards,

Dineshnarasimman M


Attachment: MVCGridSampleCustomData_3b7da08c.zip

Loader.
Up arrow icon