primeng icon indicating copy to clipboard operation
primeng copied to clipboard

[Feature Request] DataTable: row-wise editability

Open TekSiDoT opened this issue 10 years ago • 14 comments

Sometimes it can be desirable to lock or enable editing not on the complete column of a table but on individual cells.

TekSiDoT avatar Mar 24 '16 08:03 TekSiDoT

Do you mean like the first datatable at;

http://www.primefaces.org/showcase/ui/data/datatable/edit.xhtml

cagataycivici avatar Mar 24 '16 12:03 cagataycivici

No, not quite. Using the first table you're refering to there would be a mechanism to switch editing for individual cells. This could be based on either cell content itself or on some auxiliary data structure. Each data row would have to supply the information whether a specific value inside that row should be editable or not.

I realize this sounds complicated, but in the end it's an extension to the current format where table and column need the editable flag. The same would go for rows in *ngFor structures, possibly like this:

<p-dataTable [(value)]="limitsData" [editable]="true" (onRowSelect)="handleRowSelect($event)">
<p-column *ngFor="#col of limitsCols" [field]="col.field" [header]="col.header"  [editable]="col.editable">
        <template #col #car="rowData">
            <span [style.color]="car[col.field]" [editable]="car[col.editable]">{{car[col.field]}}</span>
        </template></p-column>
</p-dataTable>   

TekSiDoT avatar Mar 24 '16 19:03 TekSiDoT

I am looking feature like: http://www.primefaces.org/showcase/ui/data/datatable/edit.xhtml

in datagrid with angular2.

I'll appreciate any help

rktawni avatar Jun 01 '16 10:06 rktawni

I need the same. I want to have a date picker in the Date column of my editable data table

sanketsw avatar Aug 18 '16 01:08 sanketsw

This is a very much needed feature indeed. As I understand, there is no way to have cell-level editability at the moment, it's either whole column editable or not.

dmitrynovik avatar Aug 19 '16 02:08 dmitrynovik

This issue should be labeled as enhancement.

sanketsw avatar Aug 22 '16 02:08 sanketsw

Row-wise editing like we have in primefaces is desirable. Can we put this enhancement in the next beta milestone maybe for beta 19 ?

nkagarw avatar Oct 18 '16 19:10 nkagarw

Comments have different requirements and request is not clear. Moved the request to roadmap called row based editing, will pick it up and create a new ticket later after 1.0.

https://github.com/primefaces/primeng/wiki/Roadmap

cagataycivici avatar Nov 13 '16 10:11 cagataycivici

Hi, I need this row based editing function for p-datatable urgently. When this new feature will be added into primeNG datatable?

katrina-engelbrecht avatar Feb 10 '17 15:02 katrina-engelbrecht

When this row editable feature in ang4 will come on the road? referance:http: //www.primefaces.org/showcase/ui/data/datatable/edit.xhtml

vinodkumar526 avatar Jun 30 '17 07:06 vinodkumar526

Our estimate is within 2 months.

cagataycivici avatar Jun 30 '17 08:06 cagataycivici

Hi, Has cell level editing has been incorporated in primeng? I have searched a lot for this, but have ended up here. If yes, can anyone pls explain how to use?

Thanks.

venkatsub24 avatar Oct 27 '17 17:10 venkatsub24

Hi,

Has the cell level editing been implemented in PrimeNg datatable?

Chi1985 avatar Dec 12 '17 05:12 Chi1985

Bump!

gabrielalack avatar Jan 08 '18 20:01 gabrielalack