ag-grid / ag-grid-aurelia

Aurelia wrapper for ag-Grid project
MIT License
23 stars 8 forks source link

hide.bind="true" is not working to hide columns #16

Closed don-bluelinegrid closed 7 years ago

don-bluelinegrid commented 7 years ago

I'm submitting a ... (check one with "x")

[ X] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/ceolter/ag-grid-aurelia/blob/master/CONTRIBUTING.md#question

Current behavior Adding hide.bind="true" to a declarative column definition is not working to hide columns.

Expected behavior Should hide the columns, as documented.

Minimal reproduction of the problem with instructions

        <ag-grid-column if.bind="showColumn('message')" header-name="${'alerts.notifications.message' | t}" field="message" hide.bind="true" filter.bind="getTextSearchFilter()"></ag-grid-column>

What is the motivation / use case for changing the behavior? I need to hide columns that are used in parent/child groups, so that the group column text will be searchable by QuickFilter.

Please tell us about your environment: MacOS

don-bluelinegrid commented 7 years ago

This is still not working in version 12.0.0.
hide.bind="true" or hide="true" does not have any effect.

Any update?

mroseboom commented 7 years ago

@don-bluelinegrid This is because the hide custom attribute from aurelia-templating-resources interferes with the hide colDef option.

seanlandsman commented 7 years ago

I've added a new column property called "hideCol" - this will be mapped to "hide" under the covers and work as expected.

I'll also update the docs to reflect this difference in aurelia