<p-dataTable [value]="cars" selectionMode="single" [(selection)]="selectedCar" (onRowSelect)="onRowSelect($event)" [paginator]="true" [rows]="10" [responsive]="true">
<header>CRUD for Cars</header>
<p-column field="vin" header="Vin" [sortable]="true"></p-column>
<p-column field="year" header="Year" [sortable]="true"></p-column>
<p-column field="carbid" header="Business Just" [sortable]="true">
<p-dropdown [options]="carbids" [style]="{width:'50%'}"></p-dropdown>
</p-column>
<p-column field="brand" header="Brand" [sortable]="true"></p-column>
<p-column field="color" header="Color" [sortable]="true"></p-column>
<!--<p-column styleClass="col-button">
<template let-car="rowData">
</template>-->
<!--</p-column>-->
<footer><div class="ui-helper-clearfix" style="width:100%"><button type="button" pButton icon="fa-plus" style="float:left" (click)="showDialogToAdd()" label="Add"></button></div></footer>
</p-dataTable>
please help in primefaces it was so easy to do
dropwown inside primeng datatable not displaying
-
- Posts: 4
- Joined: 09 Jun 2016, 08:12
Last edited by adityaishu24 on 28 Jun 2016, 07:31, edited 1 time in total.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Where is the p-dialog code, I can't see in your code section.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 19 guests