- As you may have noticed, I use console.log a bit. I use chrome, so just use the dev tools included.
2. Ok, I took a better look at the customizecolumnmodel event - actually the documentation provides an example of using it.
However, even if I update the field in the event, it still doesn't become updatable. (I try updating the sortable field there, and that does get affected - it's just the editable that doesn't).
In the example they provide, they call a custom renderer function, so thought maybe something is in there:
function newTest(columnModel, index){
if (columnModel != undefined){
console.log(index.vol.editable);
i = index.vol;
i.sortable = false;
i.renderer = newRenderer;
index.vol.editable = true;
console.log(index.vol.editable);
}
}
function newRenderer(data, cellMetaData, record, rowIndex, colIndex, store){
console.log('*******
');
console.log(data);
console.log(cellMetaData);
console.log(record);
console.log(rowIndex);
console.log(colIndex);
console.log(store);
}
If I inspect record, the store object has a property of updatable which is set to true, which add to the confusion.
3. I was looking at this code:
http://www.sencha.com/forum/showthread.php?32400-GridPanel-directly-to-Excel … but just now I thought I better test it to make sure it actually works. Unfortunately it looks like there are some server side validation that don't like some of the values in the script. So I may have to look for another solution.
Thanks for all your help and advice.. appreciate it :)