Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kogrid not updating column when data changed #313

Open
yozawiratama opened this issue Feb 19, 2016 · 0 comments
Open

kogrid not updating column when data changed #313

yozawiratama opened this issue Feb 19, 2016 · 0 comments

Comments

@yozawiratama
Copy link

i have simple data like this :

var dataFromAjax = [
{Id : 1, Name : "Yoza", Status : 1},
{Id : 2, Name : "Dhika", Status : 1}
];

and next data from ajax will have different schema. like this :

var nextData = [
{Id : 1, Name : 'Yoza', Job : 'Programmer', Phone : '08788'},
{Id : 1, Name : 'Dhika', Job : 'Designer', Phone : '99987922'}
]

in my piece of code :

self.Data = ko.observableArray();
self.Data(nextData);
self.Data.valueHasMutated();

the problem is column not updated. column still same like first schema, that are id, name and status. Job and Phone not rendered. how to render different schema?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant