I want to be able to implement CRUD functionality in the grid. Ideally I would like to add buttons or hyperlinks in a cell to trigger modals so I can add/update/delete rows. How do I accomplish this. Thanks.
Thank you for your question.
Flexmonster is designed for analyzing and visualizing existing data; hence, it doesn’t focus on editing the underlying data set. However, it is possible to add buttons or hyperlinks that will contain custom logic for performing CRUD operations.
We recommend using the
customizeCell API call for adding buttons on the grid. This method processes each cell separately and allows customizing cells depending on conditions like value, row or column index, measure, etc. You should modify the
cell.text property inside the
customizeCell by adding an HTML string to create buttons on the grid.
You are welcome to check the JSFiddle example, containing buttons for “Create/Update/Delete” operations: https://jsfiddle.net/flexmonster/nhmL5cpa/.
Our team is wondering whether you tried the suggested approach for implementing the CRUD functionality on the grid.
Looking forward to hearing from you.