jQuery UI Widgets › Forums › Grid › How to disable cut copy paste and delete option for non editable column
Tagged: clipboard, grid clipboard, jqwidgets grid clipboard
This topic contains 6 replies, has 4 voices, and was last updated by Martin 6 years, 3 months ago.
-
Author
-
March 7, 2014 at 6:21 am How to disable cut copy paste and delete option for non editable column #50636
Hi,
I am using Keyboard Navigation Grid.I declare some columns are non editable but grid allows to cut copy paste and delete the value of non editable column.How to disable cut copy paste and delete option for non editable columns.March 10, 2014 at 12:57 pm How to disable cut copy paste and delete option for non editable column #50776HI
Please any one could reply for above post.March 10, 2014 at 1:20 pm How to disable cut copy paste and delete option for non editable column #50781Hi Akshatha Raju,
You can set the clipboard property to false.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comMarch 17, 2014 at 5:04 am How to disable cut copy paste and delete option for non editable column #51107Hi Peter,
I didn’t find clipboard property in API references.March 17, 2014 at 5:58 am How to disable cut copy paste and delete option for non editable column #51118Hi Akshatha Raju,
I have already wrote what you need to do. Set the clipboard property to false.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comJune 20, 2018 at 1:44 pm How to disable cut copy paste and delete option for non editable column #100636Hi,
I have set clipboard property to false. but i can paste text which is already present in clipboard.
I want disable copy and paste for a particular cell.{ text: ‘Run’, datafield: ‘nodeName’, editable: false, width: 250, renderer: this.jqGridColumnsRenderer, clipboard: false,
handlekeyboardnavigation: function (event) {
var key = event.charCode ? event.charCode : event.keyCode ? event.keyCode : 0;
if (key == 86 && event.ctrlKey == true) {
event.preventDefault();
return true;
}
},
cellsrenderer: function(row?: number, columnfield?: string, value?: any, defaulthtml?: string, columnproperties?: any, rowdata?: any){
if(value == ‘<Dynamic>’){
return “Dynamic”;
}
return value;
}
}June 21, 2018 at 8:32 am How to disable cut copy paste and delete option for non editable column #100645Hello Kavya,
You cannot use the handlekeyboardnavigation property in the columns. Instead, you can move it for the whole grid and check the datafield of the selected cell.
Here is a Demo that shows how to disable the paste for the first column only.
Best Regards,
MartinjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.