Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
145
Igx-column
posted

How to get one Igx-column value into another column. We have created a variable inside igx-column, when we try to access that variable inside another igx-column then it is displaying [object] [object].

Created object like below:-

<igx-column #docid field="documentId" header="Document Id" [filterable]="true" dataType="string" style="font-size:20px">

</igx-column>

<igx-column field="source" header="Source" [filterable]="true" dataType="string" style="font-size:10px">

<ng-template igxCell let-cell="cell">
<div *ngIf="cell.value==2">
<span>
{{docid}}
<img src="../../assets/icons/po-ack-Icon.png" />
</span>
</div>
</ng-template>
</igx-column>

Parents
  • 60
    Offline posted

    Hello Vaishnavi,

    Thank you for posting in Infragistics Community!

    I believe you will find the following sample very helpful in order to achieve your requirement. As you can observe, I am using ‘rowData’ and after that column’s field, in your case ‘DocumentId’, to access other column's value instead of the cell value.

    Please have a look at the provided sample and If it is not an accurate demonstration of what you are trying to achieve please feel free to modify it and send it back to me for further investigation.

    Looking forward to hearing from you.

    Regards, 

    Malin Hadzhiev

    Entry Level Software Developer

    Infragistics 

Reply Children