Filter on specific column

Posted by: muddam.kranthi on 21 September 2020, 8:05 am EST

    • Post Options:
    • Link

    Posted 21 September 2020, 8:05 am EST

    Hi Team,

    I know we can can have filters for all columns by adding below line inside wijmo grid.

    <wj-flex-grid-filter #filter>

    do we have anything to add filter or remove filter to specific column, just like isReadOnly for wj-flex-grid-column level.

    Thanks,

    Kranthi

  • Posted 22 September 2020, 3:41 am EST

    Hi Kranti,

    You may set the filterColumns property to set the filter for specific columns. Please refer to the following code snippet and the sample demonstrating the same:

    filterColumns: string[] = ["country", "product", "active"];
    
    <wj-flex-grid-filter
        #filter
        [filterColumns]="filterColumns"
        (initialized)="filterInit(filter)"
      ></wj-flex-grid-filter>
    

    API reference:

    https://www.grapecity.com/wijmo/api/classes/wijmo_grid_filter.flexgridfilter.html#filtercolumns

    Regards

  • Posted 22 September 2020, 3:42 am EST

  • Posted 25 September 2020, 3:08 am EST - Updated 3 October 2022, 3:30 pm EST

    Hi Sharad,

    FiltersColumns worked, but I have a different scenario.

    I want the filter to be applied on child rows of hierarchy grid. Please find below screenshot reference.

    could you please help me on how to filter on child level(SPP, NAV, SPP) data, not on parent (2018, 2019, 2020).

    Thanks,

    Kranthi

  • Posted 27 September 2020, 12:51 am EST

    Hi Team,

    Any update on this?

    Thanks,

    Kranthi

  • Posted 28 September 2020, 1:29 am EST

    Hi,

    We are working on this and will provide you an update soon.

    Regards

  • Posted 28 September 2020, 6:33 am EST

    Hi Kranti,

    Please refer to the following sample which demonstrates how to apply FlexgridFilter on hierarchical data and let us know if you face any issues:

    https://stackblitz.com/edit/angular-2bflbz?file=src%2Fapp%2Fapp.component.ts

    Regards

  • Posted 29 September 2020, 5:15 am EST

    Hi Sharad,

    The above code worked for me.

    Thanks,

    Kranthi

Need extra support?

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

Learn More

Forum Channels