Hi R Brain,
Thanks for contacting Syncfusion support.
We have analyzed your query and based on your requirement we have prepared a sample which could be downloaded from the link below,
http://www.syncfusion.com/downloads/support/directtrac/general/ze/WebApplication111016992436
We suggest you to use the action-begin and action-complete events of Grid. In the action-complete event we have rendered the dropdown list and bound the datasource in it. In the action-begin event we have assigned the values selected from the dropdown to the corresponding column. Please refer the code example below,
|
<ej-grid id="FlatGrid" allow-paging="true" query-cell-info="onQuery" action-begin="begin" action-complete="complete"> ... ... <e-edit-settings allow-adding="true" allow-editing="true" allow-deleting="true" edit-mode="InlineFormTemplate" inline-form-template-id="#template"></e-edit-settings> ... </ej-grid> <script id="template" type="text/template"> <table cellspacing="10"> <tr> <td>Order ID</td> <td> <input id="OrderID" name="OrderID" disabled="disabled" value="{{:OrderID}}" class="e-field e-ejinputtext" style="width:116px;height:28px" /> </td> <td>Customer ID</td> <td> <input id="CustomerID" name="CustomerID" value="{{:CustomerID}}" class="e-field e-ejinputtext" style="width: 116px; height: 28px" /> </td> </tr> <tr> <td>Ship City</td> <td> <input id="ShipCity" name="ShipCity" /> </td> </tr> </table> </script> <script> var str = []; function begin(args) { if (args.requestType == "save") { str = $("#ShipCity").ejDropDownList("getSelectedValue") args.data.ShipCity = str } } function complete(args) { var items = [{ text: "Berlin", value: "Berlin" }, { text: "Madrid", value: "Madrid" }, { text: "Cholchester", value: "Cholchester" }, { text: "Marseille", value: "Marseille" }, { text: "Tsawassen", value: "Tsawassen" }]; $("#ShipCity").ejDropDownList({ dataSource: ej.DataManager(items), multiSelectMode: ej.MultiSelectMode.Delimiter, showCheckbox: true }); } </script> |
Regards,
Renjith Singh Rajendran.