akveo / akveo/ng2-smart-table

Ng2-smart-table list set selected item trouble.

Open
#1,016 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.6k
Forks
867
PR merge metrics
No merged PRs in 30d

Description

Hi everyone,

I'm working on a crud scenario. Adding new item is OK but edit time I have some trouble.
I'm using settings like this, I have listed clearly on adding new item.

``` json
vehicleType: {
title: 'Araç',
editor: {
type: 'list',
config: {
selectText: 'Select',
list: this.vehicleTypeList,
},
}
}
```

But when I want to edit new item **select option** list notthing to show selected item. I want to set **select** item saved data to update data.

As you see below image , when click edit button on the right drop down selected item always empty on red line circle, I need to do blue circle , items need to fill like this.

![gapfluscapture](https://user-images.githubusercontent.com/8382599/58550177-e0443000-8215-11e9-855b-0bfe9c3220da.JPG)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.