-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to enable enableFiltering option dynamically #2067
Comments
We need to add some specific logic to do that, and haven't is the short answer. |
👍 I would also appreciate this feature. I believe I ran into this quirk. I'm starting with an empty dataset Is there a method we can call that will recompute some of these things? |
+1. i'd love to have this feature, as there are many scenarios that we want to toggle the filter areas |
I believe this is now implemented, I think I saw someone else push the request a couple of weeks back. Can we confirm? |
Has this been pushed out yet? Doesn't seem to be. I just pulled the latest a day ago. I know you were waiting for a response on this, but just wondering. |
Sorry, I appear to have failed to merge it. Merging now. |
@PaulL1 Quick question. If my data is all dynamic and I've set |
Hmm. We don't really deal with that situation. You can get the gridApi via onRegisterApi, and then modify grid.columns[x].colDef directly. I'm not sure it's a great idea, but it'd probably work and I can't think of any downsides other than it not being a documented API. |
@PaulL1 Thanks for the quick response. Although, when I try to do |
Most likely timing? Has the data loaded at this point? Or try gridApi.grid.columns[0]? |
@PaulL1 My guess is timing too. In the success callback of my remote data fetch, I set |
Yes, you need a $timeout before you can look at the columns after you set the data, if you're relying on the grid to define the columns based on the data. |
Hi everybody, |
Hi,
As the title says, I'm trying to activate the enableFiltering dinamically, but i can't and i don't know why. I can change the enableCellEdit behavior on the fly, but the same process doesn't work for enableFiltering.
I'm doing next:
$scope.gridOptions is an array because i'm showing a lot of grids.
What am i doing wrong?
Thanks.
The text was updated successfully, but these errors were encountered: