Prevent wijmo filter from filtering the grid

Posted by: david.hettmer on 12 August 2020, 9:35 am EST

    • Post Options:
    • Link

    Posted 12 August 2020, 9:35 am EST

    Hi Team,

    Is there a way to prevent the wijmo filter from filtering the data from the flexgrid? I only needed the UI from the wijmo filter. Thank you!

    Regards

  • Posted 13 August 2020, 7:50 am EST

    Hello David,

    We are sorry for the inconvenience but we are unable to understand your requirement.

    As we understand, you would not like to filter the FlexGrid at all. That can be achieved by removing the FlexGridFilter for FlexGrid if you have added anyone.

    We are not able to understand what you mean by “I only needed the UI from the wijmo filter

    Please elaborate so that we may assist you accordingly.

    Regards,

    Manish Gupta

  • Posted 13 August 2020, 9:47 am EST - Updated 3 October 2022, 3:45 pm EST

    Hi Team,

    Please see the attached image. I needed the flexgrid filter to be on the flexgrid. What I’m trying to do is to prevent the wijmo filter on filtering the flexgrid data.

  • Posted 14 August 2020, 4:51 am EST

    Hello David,

    Thank you for explaining your requirement. As per the attached image, you would like to perform actions in the FlexGrid from the server. So for this, we have a ServerCollectionView class which can be used to apply the filtering, paging from the server.

    Please refer to the following documentation for reference:

    https://www.grapecity.com/wijmo/docs/Topics/Grid/DataBinding/Server-Side-Data-Binding

    For the demo sample, please refer:

    https://demos.wijmo.com/5/SampleExplorer/SampleExplorer/Sample/ServerCollectionView

    Hope it helps!

    Regards,

    Manish Gupta

  • Posted 17 August 2020, 9:01 am EST

    Hi,

    Thank you for the suggestion, but the backend filtering is already done. What I am trying to achieve is to prevent the wijmo filter from filtering the grid data. Is there a way to do that without using server collection view?

    Thank you

  • Posted 18 August 2020, 2:06 am EST

    Hello David,

    In this case, you need to override the default apply and clear method to execute filtering on a server.

    Please refer to the following code snippet for reference:

    
    // in case of pure js, replace wjGridFilter with wijmo.grid.filter
    wjGridFilter.FlexGridFilter.prototype.apply=function(){
            alert("Own Implementation");
        }
    

    Hope it helps!

    Regards,

    Manish Gupta

  • Posted 20 August 2020, 1:50 pm EST

    Hi Team,

    Is there a way to add a link on one of the column headers of wijmo Flexi grid so that when I click on column header it should route me to some other link or pop up anything in Angularjs/typescript?

    Thank you,

    Reddy

  • Posted 21 August 2020, 3:32 am EST

    Hi Reddy,

    You can use the cell templates to add popups and angular router. Please refer to the sample link below for reference:

    https://stackblitz.com/edit/angular-agsrvc

    cell templates: https://www.grapecity.com/wijmo/api/classes/wijmo_angular2_grid.wjflexgridcelltemplate.html

    Regards,

    Ashwin

Need extra support?

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

Learn More

Forum Channels