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

setRowMetadata not working #800

Open
giedroyc opened this issue Apr 3, 2019 · 0 comments
Open

setRowMetadata not working #800

giedroyc opened this issue Apr 3, 2019 · 0 comments

Comments

@giedroyc
Copy link

giedroyc commented Apr 3, 2019

Cannot get row metadata to work as per wiki:

grid.behavior.dataModel.setRowMetadata(1, { lastName: { color: 'red' } });
grid.behavior.changed();

__META is set but grid throws an error:
Cannot read property '0' of undefined in assignProps in layer-props.js

propLayers = cellEvent.properties.propClassLayers; \\ this is undefined

Trying to hack this doesnt really help much; just propagates the errorr; ended up having to add the below which resulted in empty cell rendered... where exec is the exec from defaults

grid.behavior.dataModel.setRowMetadata(1, { lastName: { color: 'blue', propClassLayers: [1,4], exec: exec, grid: grid ,renderer: 'SimpleCell' }})

I can see that META object set using cellEventPool from renderer is much richer and works fine.

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