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
35
Display button in data grid in Rows
posted

Hi All,

I need assistance where i have a requirement for display data in tabular form which iam able to do in hierarchiacal manner. But, i also want to display a button in a rows in the table in data grid.

Ex: in a column i want to display buttons and rest column must data what we render from api call.

Can you guys please Help or provide info, how can we implement this?

Parents
No Data
Reply
  • 1080
    Verified Answer
    Offline posted

    Hi,

    Thank you for posting in our community.

    My suggestion is to use a templated column for your requirement:

    <igx-column [width]="'100px'">
    	<ng-template igxCell let-cell="cell">
    		<button igxButton="icon" (click)="removeRow(cell.cellID.rowIndex)">
    			<igx-icon>delete</igx-icon>
    		</button>
    	</ng-template>
    </igx-column>


    Did you have the chance to look at our documentation page about igxHierarchicalGrid? There you can find many samples that use templates in the columns. This particular one, for example, uses the igxButton directive in the last column.

    Please let me know if you need more information.

Children