Disabling filters for a particular column in the Wijmo FlexGrid

Posted by: rambabu on 9 November 2017, 6:39 pm EST

    • Post Options:
    • Link

    Posted 9 November 2017, 6:39 pm EST

    Hello Wijmo Team,

    I have a requirement to disable grid filter for a particular column in the grid. I am using Wijmo.grid.filter.js (Wijmo Library 5.20172.334).

    Can you please provide a solution to hide/disable the column filter.

    Thank you

  • Posted 12 November 2017, 8:29 pm EST

    Hi Rambabu,

    You need to set the filterColumns property with the columns binding to show the filter.

    http://demos.wijmo.com/5/Angular/WijmoHelp/WijmoHelp/topic/wijmo.grid.filter.FlexGridFilter.Class.html#filterColumns

    ~Manish

  • Posted 13 November 2017, 1:11 am EST

    Hello Manish Gupta,

    Can you please provide a sample for this.

    Thanks & Regards

  • Posted 13 November 2017, 8:39 pm EST

    Hello Rambabu,

    Please refer to the following code snippet for the same:

    var grid= new wijmo.grid.FlexGrid("#theGrid");
    var filter= new wijmo.grid.filter.FlexGridFilter(grid);
    // filter will be applied to specific column
    filter.filterColumns=["id","country","sales"];
    

    Alternative approach:

    var cf=filter.getColumnFilter(grid.columns.getColumn("downloads"));
    cf.filterType=0;
    

    ~Manish

  • Posted 13 November 2017, 11:53 pm EST

    Thanks Manish.

Need extra support?

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

Learn More

Forum Channels