Hi!
I’m struggling with this problem for a couple of days now. Please help me solve this problem.
If I change value in cell – for example in column test into “abc” then ‘updaterow’ function updates cell value into array of characters String { 0=”a”, 1=”b”, 2=”c”} instead of “abc”. Grid shows value as string “abc” – it’s OK. But if I write it in console or display JSON before post it to server it is an array of characters String { 0=”a”, 1=”b”, 2=”c”} . I watch on debug parameter ‘rowdata’ value and there is also for column test value an array of characters String { 0=”a”, 1=”b”, 2=”c”} .
updaterow: function (row, rowdata) {
var record = self.myData.arrayA()[row];
for(var obj in record)
{
record[obj] = ko.observable(rowdata[obj]);
}
console.log(self.myData.arrayA()[row].text()); // String { 0=”a”, 1=”b”, 2=”c”}.
}
Thank you for your help.