In certain cases, you may like to set the column edit type as multi select dropdown with checkboxes. You can achieve this by using the EditTemplate property of the Grid columns. The EditTemplate property is used to display a custom editor (any other control) for a column.
In the following code example, a Grid is rendered with the batch editing enabled.
The DataSource to the ejDropDownList control is obtained from the server side in the text value format and assigned to the control. In the read event of the edittemplate, the selected values are obtained and saved accordingly in the Grid.
The following screenshots displays the multi select dropdown as edit type for a column:
Figure 1: Initial Rendering
Figure 2: On editing a record
Figure 3: On saving the edited record
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|