Remove Formatting for number in FlexGrid Filter

Posted by: selvakumar.periyasamy on 29 November 2017, 7:11 am EST

    • Post Options:
    • Link

    Posted 29 November 2017, 7:11 am EST

    Hi,

    I’m using FlexGridFilter angular 2 , I have a grid with ID column on which if I open the filter popup, I’m seeing the ID formatted with commas . I’m displaying the number as string using celltemplate for ID column, so In filter I don’t want the comma separated format but sorting on this column should work like a numeric sort ascending or descending.

    Please help me in achieving this.

  • Posted 29 November 2017, 6:30 pm EST

    Can you share your snippet? Just your cell template.

  • Posted 30 November 2017, 3:52 am EST

    Hi,

    Please find the below code, where the data in marketDetailsId is a number

    Id Column

    
    <wj-flex-grid-column [binding]="'marketDetailsId'" [dataType]="string" [header]="'Id#'" [isReadOnly]="true" [width]="70">
    <template wjFlexGridCellTemplate [cellType]="'Cell'" let-cell="cell" [autoSizeRows]="true">
                    <p style="text-align: left">{{ cell.item.marketDetailsId }} </p>
                </template>
     </wj-flex-grid-column>
    
    
  • Posted 3 December 2017, 7:51 pm EST

    Hi Selva,

    Can you write a small Angular sample, with mock data. I cannot figure out what is the problem you are facing.

    ~nilay

Need extra support?

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

Learn More

Forum Channels