-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Editor for DataTable cell? #360
Comments
Do you need something like this http://www.primefaces.org/primeng/#/datatableeditable ? |
Yes , but I need to add Calendar , Dropdown and myOwnCell Editor component to DataTable cell. |
Then take a look at this one please http://primefaces.org/primeng/#/datatabletemplating |
It seems for custom cell rendering solution, I need to add 'p-calendar' component in to the table cell. |
Ready for 2.0, used such as; <p-dataTable [value]="cars" [editable]="true">
<p-column field="vin" header="Vin" [editable]="true"></p-column>
<p-column field="year" header="Year" [editable]="true"></p-column>
<p-column field="brand" header="Brand" [editable]="true" [style]="{'overflow':'visible'}">
<template let-col let-car="rowData" pTemplate="editor">
<p-dropdown [(ngModel)]="car[col.field]" [options]="brands" [autoWidth]="false" [style]="{'width':'100%'}" required="true"></p-dropdown>
</template>
</p-column>
<p-column field="color" header="Color" [editable]="true"></p-column>
<p-column field="saleDate" header="Sale Date" [editable]="true" [style]=" {'overflow':'visible' }">
<template let-col let-car="rowData" pTemplate="body">
{ {car[col.field]|date } }
</template>
<template let-col let-car="rowData" pTemplate="editor">
<p-calendar [(ngModel)]="car[col.field]"></p-calendar>
</template>
</p-column>
</p-dataTable> |
@cagataycivici |
@MJuma Thanks for your response. Yes this is true. I used it. :-) |
I'm having trouble using almost exactly the same code in the treeTable. No error but no display either. Any ideas? |
@cagataycivici I am facing an issue in the same scenario. |
Please create a new issue ticket for new cases to be reviewed. |
how to save the data to back end after changes made? |
[NNTR-284]Add filters on issue devices page
How can Add custom cell editor for DataTable ?
The text was updated successfully, but these errors were encountered: