Display boolean column as custom value

Hi All,
I have a grid with boolean column (Auto setting the column Type to boolean when data load). I want to display 'Y' or 'N' instead of 'true' or 'false' values. How we can achieve this easily?
Thank you.


3 Replies

HJ Hariharan J V Syncfusion Team May 9, 2019 12:15 PM UTC

Hi Neo,

Thanks for contacting us.

We suggest you to use `valueAccessor` property on coumn which is used to change display value. Please refer the below sample.

Sample: https://stackblitz.com/edit/angular-2dxztg?file=app.component.ts
 
Regards,
Hariharan


NE Neo replied to Hariharan J V May 10, 2019 06:19 AM UTC

Hi Neo,

Thanks for contacting us.

We suggest you to use `valueAccessor` property on coumn which is used to change display value. Please refer the below sample.

Sample: https://stackblitz.com/edit/angular-2dxztg?file=app.component.ts
 
Regards,
Hariharan

Hi Hariharan,

It's working perfectly. Thank you very much for your valuable support from Syncfusion.


HJ Hariharan J V Syncfusion Team May 13, 2019 06:05 AM UTC

Hi Neo,

Thanks for your update.

We are happy to hear that your requirement has been achieved.

Regards,
Hariharan


Loader.
Up arrow icon