Hi Edmund,
Thanks for contacting Syncfusion support.
We have understood from your query, you want to display the Dropdown while editing the grid. Then we suggest you to refer the following Help documentation and online demo for your reference,
You may also give a data source from in viewbag for Dropdown list in columns data source property. Please refer to the following code example,
Code example:
<ej-grid id="FlatGrid" allow-paging="true" allow-filtering="true" create="onCreated">
<e-filter-settings filter-type="Menu" />
<e-datamanager json="ViewBag.child" />
<e-edit-settings allow-deleting="true" allow-editing="true" allow-adding="true" edit-mode="@(EditMode.Dialog)" />
<e-toolbar-settings show-toolbar="true" toolbar-items="@(new List<string>() {"add","edit","delete","update","cancel" })"></e-toolbar-settings>
<e-columns>
<e-column field="OrderID" is-primary-key="true" header-text="OrderID" width="90"></e-column>
<e-column field="CustomerID" header-text="Customer ID" width="80"></e-column>
<e-column field="EmployeeID" header-text="Employee Id" edit-type="Dropdown" datasource="ViewBag.dropdown"></e-column>
<e-column field="ShipCountry" header-text="Ship Country" width="110"></e-column>
</e-columns>
</ej-grid>
|
Note: Dropdown data source should be text and value pair. Please refer to the following Help documentation for more information,
If we misunderstood your requirement, then could you please provide more details about your requirement and scenario, Grid code example?
Regards,
Venkatesh Ayothiraman.