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

How to resize excelfilter, or at least get some features out of this box (pin, hide, text)

Open corganfuzz opened this issue 7 years ago • 14 comments

Question

One of my favorite new features is the excefilterstyle mode. However, I got 2 observations:

  1. My grid is in the middle of my page and the height of my table is 805px , when you click on the filters they do show up. However, because the box is too big , if you scroll down the filters disapear and you have to click the filter menu again for them to show.

  2. What if I dont want the Pin column, Hide column and Text Filter options ? that could solve my problem. (I have them in my toolbar, already),. Also, the font I set for the grid doesnt affect the font in the excelfilterstyle, they are actually bigger than the grid's font. That doesnt make sense, even in excel the filter box and fonts are smaller than the font of the actual data.

See Blitz

filtertoobig

Unrelated , yet helpful.

Looks like all the links for these new components documentation are broken.

brok

  • igniteui-angular version: 7.2.0
  • browser: Chrome

corganfuzz avatar Mar 08 '19 22:03 corganfuzz

@corganfuzz HI you can disable Pin and Hide by disable them from the Grid it self, if you have them active for the grid they will appear in the Excel Style Filtering as well. As for other kind of resize currently it is no possible. About the docs they will be update and published this week :) together with the samples on the website :) the text field option can't be disabled :)

SlavUI avatar Mar 11 '19 06:03 SlavUI

You mean active on the toolbar? But I dont want to diaable them there. Or how do you mean “active on the grid”?

corganfuzz avatar Mar 11 '19 07:03 corganfuzz

@corganfuzz if the are set to true for the Grid they will be active in the excel filtering as well, and the text filed can't be removed.

SlavUI avatar Mar 11 '19 07:03 SlavUI

Ahh you mean in <igx-column [pinned]=false. Ok that sorta saves me. How about font and styles? Mixins maybe?

corganfuzz avatar Mar 11 '19 07:03 corganfuzz

@corganfuzz We can definitely create a typography mixin specific to the excel style filtering. This will allow you to change the font-size of the header and some of the other elements. However, most components used in the excel style filtering menu have typography mixins of their own. As to your other request - being able to hide some of the options in the menu, I guess @SlavUI and @kdinev can chime in.

simeonoff avatar Mar 11 '19 07:03 simeonoff

@corganfuzz There are two ways to hide the Sorting, Moving, Hiding and Pinning items from the ExcelStyle menu. First one is to disable the feature for the column. Setting sortable and movable inputs of the column to false will remove the Sorting and Moving items from the menu. Setting disableHiding and disablePinning inputs of the column to true will remove the Hiding and Pinning items from the menu. The second way is to add empty templates to the column for the options you don't want to appear in the menu. E.g. adding:

<igx-column field="ID" sortable="true">
    <ng-template igxExcelStyleSortingTemplate>
    </ng-template>
</igx-column>

to a column that is sortable will remove the sorting item from the excel style filtering menu, but the column will remain sortable. There are also igxExcelStyleMovingTemplate, igxExcelStyleHidingTemplate and igxExcelStylePinningTemplate.

sstoyanovIG avatar Mar 11 '19 09:03 sstoyanovIG

@sstoyanovIG disableHIding and disablePinning works perfectly. sortable and movable dont. I will take a look at the template. I sorta hesitate to to change every single column I have on my grid. I wish there was something global. If worst comes to worst I could probably do it, but programatically instead of putting it inside the HTML

corganfuzz avatar Mar 11 '19 20:03 corganfuzz

@corganfuzz you can see this sample:

https://www.infragistics.com/products/ignite-ui-angular/angular/components/grid/excel_style_filtering.html#configure-menu-features

e.g. the 'Quantity Per Unit' column has hiding, moving, sorting an pinning turned off.

sstoyanovIG avatar Mar 12 '19 07:03 sstoyanovIG

@corganfuzz we are working on a sample which demonstrates how you could hide some of the features (sorting, hiding, pinning) from this dialog without disabling those features per column. Once we're done we will update this issues with a link to the sample.

bkulov avatar Mar 14 '19 09:03 bkulov

Excel style filtering dialog should use grid's displayDensity property. Related issue #4300.

bkulov avatar Mar 26 '19 13:03 bkulov

There are plans to have different layouts of the excel style filtering dialog according to grid's displayDensity property. Related issue is #4367

bkulov avatar Mar 28 '19 09:03 bkulov

@corganfuzz closing this one as there is an issue open to add displayDensity :)

SlavUI avatar Mar 29 '19 07:03 SlavUI

btw @sstoyanovIG your approach with ng-template in conjunction with *ngFor worked wonderfully.

corganfuzz avatar Mar 29 '19 20:03 corganfuzz

@corganfuzz We've added a sample demonstrating how to use custom templates to customize excel style filtering UI. If you provide an empty template the corresponding feature will not be visible in the excel style filtering UI. https://www.infragistics.com/products/ignite-ui-angular/angular/components/grid/excel_style_filtering.html#configure-menu-features

bkulov avatar Apr 04 '19 08:04 bkulov