We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Pivot Grid Null Value

Thread ID:

Created:

Updated:

Platform:

Replies:

141479 Dec 13,2018 12:38 PM UTC Dec 14,2018 08:42 AM UTC Angular - EJ 2 2
loading
Tags: PivotGrid
serdar çelebi
Asked On December 13, 2018 12:38 PM UTC

Hi Team,

I am trying to change null value or no value to 0 or specific value in pivot grid but I couldnt find how to do.

Thanks in advance.

Suriya [Syncfusion]
Replied On December 14, 2018 07:29 AM UTC

Hi Serdar, 
 
Currently, we don’t have direct API to show the null or no value as zero or custom value. But, You can change null value (or) no value to 0 by using queryCellInfo event. Please refer the below code snippet to show the cell text as zero. 
Code Snippet [Typescript]: 
queryCell(args: any): void { 
    (this.pivotGridObj.renderModule as any).rowCellBoundEvent(args); 
    if (args.cell.innerText == '') { 
        args.cell.innerText = 0; 
      } 
 
  } 
 
  enginePopulated(args: any): void { 
    this.pivotGridObj.grid.queryCellInfo = this.queryCell.bind(this); 
  } 
 
 
Code Snippet: [HTML] 
<ejs-pivotview #pivotview id='PivotView' [dataSource]=dataSource width='100%' height='300' (enginePopulated)='enginePopulated($event)'> 
</ejs-pivotview> 
 
 
Meanwhile, we have prepared sample for your reference. Please find the sample in below link. 
 
We will be provided direct API for this feature in any of our upcoming releases. 
 
Thanks, 
Suriya 


serdar çelebi
Replied On December 14, 2018 08:42 AM UTC

Thanks for the solution, it works well ;)

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;