Replies
0
- Which Ignite UI for Angular version are you using? igniteui-angular": "8.2.17
- 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
- Is this behavior reproducible when binding the combo data initially or only when updating the data? only when updating the data .
0
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
},
]
{
“field”: “Test1”,
“queryId”: 281
},
{
“field”: “Test12”,
“queryId”: 275
},
{
“field”: “Test13”,
“queryId”: 276
},
]
if possible can you please schedule meeting
Regards,
Sarathkumar
0
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
<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>