Get Free Trial

CRUD in Grid

Answered
Jerome Harrison asked on May 19, 2022

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.

2 answers

Public
Maksym Diachenko Maksym Diachenko Flexmonster May 20, 2022

Hello, Jerome!

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/.

Best Regards,
Maksym

Public
Maksym Diachenko Maksym Diachenko Flexmonster May 31, 2022

Hello, Jerome!

Our team is wondering whether you tried the suggested approach for implementing the CRUD functionality on the grid.
Looking forward to hearing from you.

Best Regards,
Maksym

Please login or Register to Submit Answer