1

I'm using Infragistics grid and want to filter results. The filter supported by the grid filters based on the text entered, but I want to filter based on a list of checkboxes, like in Excel and SharePoint. How can I achieve this effect??

enter image description here

SharePoint list filters based on which checkboxes are checked.

enter image description here

1 Answer 1

0

You can customize the igGrid filtering drop down with your own custom filtering conditions as shown in this sample.

{
    name: "Filtering",
    mode: "simple",
    filterDialogContainment: "window",
    columnSettings: [
    {
        columnKey: "Country",
        customConditions: {
           USA: {
                key: 'USA',
                labelText: 'USA',
                expressionText: "USA",
                filterFunc: filterCountryUSA
           },
           Canada:{
                 key: 'Canada',
                 labelText: 'Canada',
                 expressionText: "Canada",
                 filterFunc: filterCountryCanada
           },
        }
    }
}
1
  • Yes but the problem is that you have to enter these static. I was looking for a solution that updates dynamically the custom conditions based on the column's data. Commented Jun 3, 2016 at 10:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.