How to implement dropdown in cell-edit?

Posted by: wzheng on 21 May 2019, 3:06 am EST

  • Posted 21 May 2019, 3:06 am EST

    We'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.
  • Marked as Answer

    Replied 21 May 2019, 8:55 pm EST

    Hi,

    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:
    https://demos.componentone.com/Spread/JS/ViewsDemo/#/demos/CustomInlineEditor

    Regards
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels