Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Raghu on Oct 17, 2008 05:51
open dhtmlx forum
How to make price column readonly

Hi,
How to make the price column read only
Answer posted by Support on Oct 17, 2008 06:24
You can make any column readonly by using 
grid.attachEvent("onEditCell", function(stage,id,ind){
    if (ind == INDEX) return false;
    return true;
});

where INDEX - index of column which need to be set readonly. 

Also , you can change column editability through prototype , as

eXcell_price.prototype..isDisabled=function(){return false;}