Posted 21 May 2019, 3:06 am ESTWe're using spreadview for a grid. For one of the columns, its value is chosen from a dropdown. We want to edit the cell in this column as a dropdown (not a editForm for a row). We cannot find the existing example for this. The questions are: can spreadviews realize this function? if yes, how? Could you please give a code example. Thanks.
How to implement dropdown in cell-edit?
Posted by: wzheng on 21 May 2019, 3:06 am EST
Marked as Answer
Replied 21 May 2019, 8:55 pm ESTHi,
SpreadViews allow us to define custom editors for a column using the editor property.
In the most basic form, our custom editor class should define two methods:
1). init: to configure how the editor is displayed.
2). serialize: to return the value from the editor
Please refer to the following sample which demonstrates how we could add custom editors and let us know if you face any issues: