Skip to content

Replies

0
Sarathkumar celiyan
Sarathkumar celiyan answered on Sep 1, 2022 6:24 AM
  1. Which Ignite UI for Angular version are you using? igniteui-angular": "8.2.17
  2. How is the data updated on your side? Could you please provide a code snippet from the .ts file?
    let temptopic = this.testvall[‘test’].filter(fdata => fdata.scanTopic == this.selectedquery)
    if (!checkboxinactive) {
    temptopic.map((data) => {
    if (data.activeRole == 'Y') {
    let temptopic = {
    "field": data.queryName,
    "queryId": data.queryId
    }
    this.querytopic.push(temptopic)
    }
    })
    } else {
    temptopic.map((data) => {
    if (data.activeRole == 'N') {
    let temptopic = {
    "field": data.queryName,
    "queryId": data.queryId
    }
    this.querytopic.push(temptopic)
    }
    })
    }
    in console also this.querytopic – I have value  
  3. Is this behavior reproducible when binding the combo data initially or only when updating the data? only when updating the data . 
0
Sarathkumar celiyan
Sarathkumar celiyan answered on Aug 30, 2022 10:01 AM

Hi Riva,

Thanks for the update. Please find the below sample data

sample combo box:

<igx-combo #comboqueryutopic class="combo2" [itemsMaxHeight]="250" [data]="querytopic" displayKey="field"
valueKey="queryId" [(ngModel)]="fselectedquerytopic" ngDefaultControl
(onSelectionChange)="singleSelectionQuerytopic($event)" placeholder="Select Query Under Topic"
searchPlaceholder="Search…" [filterable]="true" [disabled]="disabledtablelevel">
</igx-combo>
sample data:
[
{
“field”: “Test1”,
“queryId”: 281
},
{
“field”: “Test12”,
“queryId”: 275
},
{
“field”: “Test13”,
“queryId”: 276
},
]

if possible can you please schedule meeting

Regards,

Sarathkumar

0
Sarathkumar celiyan
Sarathkumar celiyan answered on Aug 30, 2022 4:35 AM

Hi Riva,

Could you please clarify what do you refer to with “update values from backend”? yes, I assigned new set values .   For my side I am assigned same name displayKey="field" only .

0
Sarathkumar celiyan
Sarathkumar celiyan answered on Aug 29, 2022 12:08 PM
<igx-combo #comboqueryutopic class="combo2" [itemsMaxHeight]="250" [data]="querytopic" displayKey="field"
valueKey="queryId" [(ngModel)]="fselectedquerytopic" ngDefaultControl
(onSelectionChange)="singleSelectionQuerytopic($event)" placeholder="Select Query Under Topic"
searchPlaceholder="Search…" [filterable]="true" [disabled]="disabledtablelevel">
</igx-combo>