Jsgrid: Disable "Delete" option

Created on 24 May 2015  路  2Comments  路  Source: tabalinas/jsgrid

Hi. Is there any way to disable "Delete" option ?

help wanted

Most helpful comment

Not sure what you mean by "Delete" option, but if you talk about control field, you can hide delete button with following config option:

{ type: "control", deleteButton: false }

Thus a user won't have ability to delete an item from UI.

All 2 comments

Not sure what you mean by "Delete" option, but if you talk about control field, you can hide delete button with following config option:

{ type: "control", deleteButton: false }

Thus a user won't have ability to delete an item from UI.

Hi tabalinas,
Is there a way to disable the delete option on a particular condition, i can do that for editing but the delete option is still active
check is coming through a ajax call and i want to disable the form when it is 1
if(check==1){
$("#jsGridCommercial").jsGrid({
editing: false,
inserting: false
});
}

Thanks
Sameer

Was this page helpful?
0 / 5 - 0 ratings