FlexGrid column not using format specified for number

Posted by: kevin.krohn on 14 February 2018, 11:07 am EST

    • Post Options:
    • Link

    Posted 14 February 2018, 11:07 am EST

    I am creating an Angular2 application.

    I have a grid column defined as:

    <wj-flex-grid-column [header]="'PO #'" [binding]="'poNumber'" [dataType]="Number" [format]="d"></wj-flex-grid-column>
    

    The model field of poNumber is defined as a number.

    The grid is ignoring any format that I specify and always displaying values with commas in the cell. I just want the number with no commas. Is there something special that I need to do for the setup? The only way that I have gotten around this is to change the data type in the model to a string.

  • Posted 14 February 2018, 11:23 am EST

    Figured it out. I needed single quotes around the format string.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels