When trying to apply the setRowExcellType method I receive the following error:
Uncaught TypeError: Cannot read property 'childNodes' of undefined
dhtmlXGridObject.setRowExcellType @ dhtmlx.js:9
(anonymous function) @ griddemo.html:47
I am including demo files and as you can see by them, I tried setting the method before and after the grid init and load.
I have tried this with setRowColor also with the same results. What am I doing wrong?
demo.zip (1.26 KB)
A little more explanation on what I’m wanting to achieve.
As you can see by the demo file, I set my grid excell types by the column initially. I want to maintain these types throughout the grid with the exception of select row(s).
On these row(s) I would like to disable the excell types and make the cells in them read only.
Thank you,
You should call the setRowExcelltype() method after the data is loaded:
myGrid.load('demo.xml', function(){
myGrid.setRowExcellType('1000','ro');
});