Categories | Question details Back To List | ||
Making Columns Read Only by Column ID re making a column read only below You can define onEdit event and block edit operation for necessary column, it will work for all excells, including checkboxes mygrid.attacEvent("onEditCell",function(stage,rid,cind){ if (cind==CHECKBOX_COLUMN) return false; }); I need to be able to do this by referring to the ColumnID rather then the Index -how do I, I have tried various way but with no luck, just think I am missing something in the syntax. Scott Answer posted by Support on Nov 27, 2007 09:43 There is a getColumnId function which is reverse of getColIndexById and returns id by index mygrid.attachEvent("onEditCell",function(stage,rid,cind){ if (this.getColumnId(cind)==COLUMN_ID) return false; }); where COLUMN_ID - id of column in question |