ce icon indicating copy to clipboard operation
ce copied to clipboard

setValue is not working inside onchange() in angular

Open gargri opened this issue 6 years ago • 5 comments

onchange(instance, cell, x, y, value) { console.log(instance); // var position = cell.attr('id').split('-'); // console.log(position); console.log(this.table.data); console.log(cell); console.log(x); console.log(y); this.table.setValue('A1','text'); console.log(jexcel.getColumnNameFromId([x,y])); console.log('New change on cell ' + jexcel.getColumnNameFromId([x,y]) + ' to: ' + value + ''); //jexcel(this.spreadsheet).getColumnNameFromId([x,y]); return true; }

this is my code and when i use this it shows me error

core.js:6189 ERROR TypeError: this.table.setValue is not a function at Object.onchange 👍

gargri avatar Aug 24 '20 06:08 gargri

Change: this.table.setValue to instance.jexcel.setValue

pphod avatar Aug 24 '20 18:08 pphod

sir this is also not working . show me this error core.js:6189 ERROR TypeError: instance.setValue is not a function at Object.onchange

gargri avatar Aug 25 '20 04:08 gargri

plz reply its urgent

gargri avatar Aug 26 '20 10:08 gargri

Change: this.table.setValue to instance.jexcel.setValue

pphod avatar Aug 27 '20 22:08 pphod

thanks for reply but this is not working

gargri avatar Aug 29 '20 08:08 gargri