Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to disable a particular column using handsontable in handsontable.I want first column only editable other three columns get disable.I'm using readonly true for three columns but it's not work how to disable....

Java
columns: [
         {
type:'handsontable',
handsontable: {

 colHeaders: ['EmployeeNo','EmployeeName','Department','Designation'],
 data: manufacturerData,
 columns:[{},{readOnly: true},
     {
    readOnly: true
       },
     {
   readOnly: true
     }]
    }
    },
    {}]
Posted
Updated 5-Nov-13 5:29am
v3

1 solution

Read-only and disabled state should be related, but actually they are different things. To disable some element, you need to use the .prop() method, for example:
JavaScript
myElement = $("#elementId");
myElement.prop("disabled", true);

//...

myElement.prop("disabled", false);


Please see: http://api.jquery.com/prop/[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900