primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Datatable footer function called every mouse click

Open viswa-optimusprime opened this issue 9 years ago • 6 comments

There is no guarantee in receiving a response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeNG PRO Support where support is provided within 4 business hours

I'm submitting a ... (check one with "x")

Datatable footer function called every mouse click

[ ] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports) Please fork the plunkr below and create a case demonstrating your bug report. Issues without a plunkr have much less possibility to be reviewed.

http://plnkr.co/edit/6q5v84DWolH6DeAdi70w?p=preview

http://plnkr.co/edit/aOhpjb?p=preview

Current behavior Datatable footer function called every mouse click

http://plnkr.co/edit/aOhpjb?p=preview

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

  • Angular version: 4.X 4.4.X

  • PrimeNG version: 4.2.2.X 4.2.2

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

  • Language: [all | TypeScript X.X | ES6/7 | ES5]

  • Node (for AoT issues): node --version =

viswa-optimusprime avatar Oct 14 '17 17:10 viswa-optimusprime

<p-dataTable #dt [value]="cars" [(selection)]="selectedItems" [editable]="true" (onEditInit)="onEditInit($event)" (onEdit)="onEdit($event)" (onEditCancel)="onEditCancel($event)" (onEditComplete)="onEditComplete($event)"> <p-column [style]="{ 'width':'38px', 'text-align':'center' }" selectionMode="multiple"> <p-column field="vin" type="number" header="Vin" [editable]="true"> <input type="number" class="ui-inputtext ui-widget ui-state-default ui-corner-all" [(ngModel)]="rowData[col.field]" [ngModelOptions]="{standalone:true}" (change)="onCellEditorInput($event, col, rowData)" />

{{calculateTotal()}}

viswa-optimusprime avatar Oct 14 '17 17:10 viswa-optimusprime

Please update the issue to answer the questions above to provide more info.

cagataycivici avatar Oct 19 '17 15:10 cagataycivici

@cagataycivici . Thank you so much for the reply. Please find below plunker.The footer function called even for mouse click

http://plnkr.co/edit/aOhpjb?p=preview

viswa-optimusprime avatar Oct 19 '17 16:10 viswa-optimusprime

image

log attched

viswa-optimusprime avatar Oct 19 '17 16:10 viswa-optimusprime

@cagataycivici Can i get any update on this ?

viswa-optimusprime avatar Oct 30 '17 16:10 viswa-optimusprime

p-dataTable is deprecated and will be removed in favor of the new p-table (aka TurboTable) of 5.1.0 so closing the issue. Please try the new p-table once 5.1.0 is released.

cagataycivici avatar Jan 13 '18 22:01 cagataycivici