Our state of the art Gantt chart

Post by JSureka »

I want to include multiple row delete option in the task editor popup. I tried adding a separate check box column by using the following code.

                type: "check",
                showCheckAll: true,
                width: "52px",

I have shared the screenshot of the task editor below with the checkbox column highlighted
How to add the delete functionality for selecting multiple rows at a time ?

Screenshot.png (45.63 KiB) Viewed 50 times

Post by pmiklashevich »

You can use selectionMode row and checkbox

    selectionMode : {
        row      : true,
        checkbox : true

Then remove selected records from the store.

You can open our demo, for example columntypes, select multiple rows, and run in console:


You can add a button to run that code on click.

It is also possible to do it with a check column added manually as you did. By enabling a checkbox you change a boolean data field on the records which is bound to the column. Basically you can query all records with this field true, and pass them to the store.remove function.


Pavel Miklashevich - Core Developer

Post by JSureka »

got it. Thank you

Post Reply