when i draw the grid i have some column like this..
name: 'codigo', index: 'codigo', width: 50, align: 'center', editable: true }
But after i want to do a query and then set the editable option, for example to false, is this possible?
Thanks.
when i draw the grid i have some column like this..
name: 'codigo', index: 'codigo', width: 50, align: 'center', editable: true }
But after i want to do a query and then set the editable option, for example to false, is this possible?
Thanks.
You can get reference to internal
colModel
usinggetGridParam
:Now you can enumerate elements in
colModel
array and find the element which has propertyname
with the value"codigo"
. After that you can modifyeditable
property of the element ofcolModel
array. Look atgetColumnIndexByName
function from the answer for a code example.The most simple way to do what you want is the usage of setColProp method