Following is the code that I am using
1.I add a new row in angular slickgrid table with below code const newItem = { id: this.dataset.length + this.index, roleName: '' };
// add the item to the grid
this.angularGrid.gridService.addItem(newItem);
- Following is the column Defination
this.columnDefinitions = [ { id: 'roleName', name: 'Role *', field: 'roleName', sortable: true, type: FieldType.string, filterable: true, width: 80, editor: { model: Editors.singleSelect, enableRenderHtml: true, collection: ['1','2', '3'], placeholder: 'choose an option', collectionSortBy: { property: 'label' }, } } ]
3.GridOptions are:
this.gridOptions = {
enableAutoResize: true,
enableCellNavigation: true,
editable: true,
autoEdit: true,
enableColumnPicker: true,
};
But Can see When I add a new row in table and if I quickly click on the select element then it opens a dropdown for fraction of seconds then it automatically getting closed.