jQuery UI Widgets Forums Grid Where's the API Documentation for Filters?

This topic contains 2 replies, has 2 voices, and was last updated by  Hristo 5 years, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Where's the API Documentation for Filters? #96306

    jdh
    Participant

    I must just not be looking in the right place, but where’s the API documentation for the .ts side of things?
    For example, on this filtering page you have the following, but I can’t find any info the parameters for createfilter() and addfilter(). Like, what is filter_or_operator, and how would you know to set it to 1? What are all the possible values for filtercondition?

    I’m just trying to filter a single field via a radio button outside the grid, but can’t for the life of me figure out how without knowing how to create a custom filter.

    
    addfilter = (): void => {
            let filtergroup = new jqx.filter();
            let filter_or_operator = 1;
            let filtervalue = 'Beate';
            let filtercondition = 'contains';
            let filter1 = filtergroup.createfilter('stringfilter', filtervalue, filtercondition);
            filtervalue = 'Andrew';
            filtercondition = 'starts_with';
            let filter2 = filtergroup.createfilter('stringfilter', filtervalue, filtercondition);
            filtergroup.addfilter(filter_or_operator, filter1);
            filtergroup.addfilter(filter_or_operator, filter2);
            this.myGrid.addfilter('firstname', filtergroup, true);
            this.myGrid.applyfilters();
        }
    
    Where's the API Documentation for Filters? #96307

    jdh
    Participant

    I think I found it. It’s just under the Javascript/jQuery page, and I’m using Angular. A link on the Angular pages to this page would be much appreciated!

    Where's the API Documentation for Filters? #96322

    Hristo
    Participant

    Hello jdh,

    I assume that this case has been resolved?
    I would like to suggest you look at this tutorial:
    https://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxgrid/jquery-grid-filtering.htm?search=grid
    (for more information you could visit the page with API Documentation)

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.