igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

Can select previous default filter template even after defining custom filter template

Open Nick-Angel opened this issue 6 years ago • 4 comments

Description

If there exists a grid with both custom and default filter templates, once the user clicks on a default filter template badge and then clicks on the column header of a column with a custom filter template, instead of showing the custom filter template a default filter template is shown instead. This can be misleading and problematic for users as developers may not have implemented functionality for that column's default filter template if they're already using the custom filter template (say, if they have specific requirements and run filter queries through a backend)

  • igniteui-angular version: 9.0.13
  • browser: all browsers

Steps to reproduce

  1. Open stackblitz link: https://stackblitz.com/angular/odpnvkldmnr
  2. Click on Discontinued badge
  3. Click on any other column header

Result

The user sees the default filter template (where they can chain filter queries with AND/OR) instead of the custom filter template.

Expected result

Upon clicking a column header with a custom filter template defined, the grid should reset to the default view (where it initially shows the filter badges and custom filter templates)

I would assume a variable just needs to be created/checked to see what type of template is defined for the header, and should be checked here in grid-header.component.ts's public onClick(event): https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/grids/headers/grid-header.component.ts

(But that's just my guess)

Attachments

Below shows the different filter templates (default and custom) being accessible Screen Shot 2020-05-17 at 3 56 56 PM Screen Shot 2020-05-17 at 3 57 12 PM Screen Shot 2020-05-17 at 3 57 47 PM Screen Shot 2020-05-17 at 3 58 04 PM

Nick-Angel avatar May 17 '20 20:05 Nick-Angel

Hi @simeonoff , is someone available to check out this bug?

Nick-Angel avatar May 20 '20 21:05 Nick-Angel

@Nick-Angel I have assigned our Product Owner @radomirchev to this issue. He will be able to give you a better estimate of when we can resolve this issue.

simeonoff avatar May 21 '20 06:05 simeonoff

@Nick-Angel I am going to schedule the issue for the next sprint. The current one is focused on Ignite UI 9.1 release.

radomirchev avatar May 21 '20 06:05 radomirchev

Thanks @simeonoff and @radomirchev !

Nick-Angel avatar May 21 '20 20:05 Nick-Angel