[FlexGrid] Is it possible to format the displayed filter values?

Posted by: khandakartareq.alam on 26 May 2022, 6:17 pm EST

  • Posted 26 May 2022, 6:17 pm EST

    Hello Support,
    Is it possible to format the values displayed in the flexgrid filter?
    For example: The grid contains data of following.
    UK
    Germany
    Japan


    But in the filter we need display something like below:
    UK-001
    Germany-002
    Japan-002


    Only the appearance of the filter values will be changed. So that, when filtering with UK-001, the Grid will show the row consists of UK.

    Please help.
    Thank you.
  • Marked as Answer

    Replied 29 May 2022, 8:05 pm EST

    Hello,

    We apologize for the delayed response, Yes you can change the display values for the columnFilter. To achieve the required functionality you may use the dataMap property of the ColumnFilter to provide your custom DataMap to show the values as per your requirement on the filter. Please refer to the API link below for reference:

    https://www.grapecity.com/wijmo/api/classes/wijmo_grid_filter.columnfilter.html#datamap

    Regards
  • Replied 29 May 2022, 9:03 pm EST

    Hello Sonu,

    Thank you so much.
    I was able to achieve the required functionality by using dataMap property of the ColumnFilter.

    Regards
Need extra support?

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

Learn More

Forum Channels