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

Column dropdown values are not dynamically updating in edit mode. #1048

Open
Yojanaa opened this issue Jul 30, 2019 · 0 comments
Open

Column dropdown values are not dynamically updating in edit mode. #1048

Yojanaa opened this issue Jul 30, 2019 · 0 comments

Comments

@Yojanaa
Copy link

Yojanaa commented Jul 30, 2019

Hi,

I am trying to bind dynamic values to the dropdown in edit mode but it is not updating.

My settings column is this:

columns: {
allowedValue: {
title: 'Value',
filter: true,
editor: {
type: 'list',
config: {
selectText: 'Select',
list:[]
}
}
}
}

My code for edit mode is this :

arrayValue=[];
onEdit(event){

 this.arrayValue=event.data.allowedValue.split(',');
  this.arrayValue.forEach(element => {
    const listValue={
      'value':element,
      'title':element
    }
 this.settings.columns.allowedValue.editor.config.list.push(listValue);
  });
} 
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