ag-grid-ng2

Is it possible to open and close a custom floating filter in ag-grid?

旧巷老猫 提交于 2021-02-08 10:21:10
问题 Is it possible to open and close or to show and hide custom floating filters in ag-grid, for example if a button was clicked? If you initialize the table, only the header should be visible. Then after a specific button was clicked, also the floating filters below the header should be visible. 回答1: Try this: gridOptions.floatingFilter = !gridOptions.floatingFilter; gridOptions.api.refreshHeader(); 来源: https://stackoverflow.com/questions/46956579/is-it-possible-to-open-and-close-a-custom

Server-side filtering with Angular 6 ag-grid and ASP.NET and EF Core 2.1

天涯浪子 提交于 2021-02-08 08:12:43
问题 I am trying to implement server-side filtering in ag-grid (infinite scrolling mode). Problem is - documentation about filterModel is very obscure and I am slowly discovering things using console.log which is getting frustrating because of different information filterModel can provide which also makes mapping to server side classes very tedious. Has anyone found proper documentation about filterModel? Also, has anyone found helper methods for ASP.NET Core and EF Core to apply this filterModel?

Server-side filtering with Angular 6 ag-grid and ASP.NET and EF Core 2.1

…衆ロ難τιáo~ 提交于 2021-02-08 08:01:28
问题 I am trying to implement server-side filtering in ag-grid (infinite scrolling mode). Problem is - documentation about filterModel is very obscure and I am slowly discovering things using console.log which is getting frustrating because of different information filterModel can provide which also makes mapping to server side classes very tedious. Has anyone found proper documentation about filterModel? Also, has anyone found helper methods for ASP.NET Core and EF Core to apply this filterModel?

AG-Grid - How to insert a line break into my cell data

一笑奈何 提交于 2020-07-09 04:14:14
问题 I'm new to AG-Grid, so forgive me if this is a dumb question. We're using the OSS version of Ag-Grid in an Angular 5 application. I have a column where I am combining two sets of summary data and showing them. I would like to have a line-break between the two pieces of text. Right now it's doing this: "Summary One Summary Two" I want it to do this: "Summary One Summary Two" So far I've tried and HTML break tag, \r\n and just \n and nothing has worked. Is this possible to do? Thanks, James 回答1

AG-Grid - How to insert a line break into my cell data

自闭症网瘾萝莉.ら 提交于 2020-07-09 04:11:13
问题 I'm new to AG-Grid, so forgive me if this is a dumb question. We're using the OSS version of Ag-Grid in an Angular 5 application. I have a column where I am combining two sets of summary data and showing them. I would like to have a line-break between the two pieces of text. Right now it's doing this: "Summary One Summary Two" I want it to do this: "Summary One Summary Two" So far I've tried and HTML break tag, \r\n and just \n and nothing has worked. Is this possible to do? Thanks, James 回答1

ng build --prod failed after ag-grid v 22.1.1 upgrade

南楼画角 提交于 2020-06-23 11:09:12
问题 I've started using ag-grid since its version 18 and currently at 20.0.0 I am in the process of upgrading to its latest version - 22.1.1. After resolving warning/errors due to breaking changes, everything - including 'ng serve' works fine. However, when I try to build angular application in prod mode, it fails. ERROR in ./app/app.module.ngfactory.js Module not found: Error: Can't resolve 'ag-grid-community/dist/lib/eventService' in 'C:\project\src\app'ERROR in ./main.ts Module not found: Error

ng build --prod failed after ag-grid v 22.1.1 upgrade

早过忘川 提交于 2020-06-23 11:09:07
问题 I've started using ag-grid since its version 18 and currently at 20.0.0 I am in the process of upgrading to its latest version - 22.1.1. After resolving warning/errors due to breaking changes, everything - including 'ng serve' works fine. However, when I try to build angular application in prod mode, it fails. ERROR in ./app/app.module.ngfactory.js Module not found: Error: Can't resolve 'ag-grid-community/dist/lib/eventService' in 'C:\project\src\app'ERROR in ./main.ts Module not found: Error

How to launch a method after a cell value has been edited in ag-grid?

主宰稳场 提交于 2020-05-15 10:19:25
问题 I have this simple column: Here's its definition: { headerName: "Activité", field: "activite", editable: true, , cellClass: "cell-wrap-text" } Here's the method I want to launch every time the user enters a new input in that column. public UpdateActValue() { this.data.sendActToBia(this.params.data.activite); } Here are my questions: 1/ Are there any ag-grid "native" way to launch a particular method after a cell value from a column has been edited? 2/ Should I simply define a custom cell

Ag grid Server side pagination

不羁岁月 提交于 2020-01-12 05:51:07
问题 I'm trying to implement a server side pagination in ag-Grid where I'll make a SOAP call each time I click on the next/previous button. I have already implemented the function with the specific page number so I can retrieve my row data and pass it to the Grid. Any good examples on how to do that? Thanks in advance. 回答1: After digging ag-grid Library for the whole day , I finally found the solution. First Lets include the following options in our GridOptions; GridOptions : gridOptions:

ag-grid gridApi.setFilterModel() model with multiple conditions [angular6]

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 08:58:40
问题 I want to filter my table based on a set of rules. I found that this was possible to do via filtermodels and conditions. I tried to stack conditions but that doesn't seem to work. e.g. This works Filter = { columnName: { condition1 : { type: 'contains', filter: 'searchstring1', }, operator: 'AND', condition2 : { type: 'contains', filter: 'searchstring2', }, }, }; This does not work. Filter = { columnName: { condition1 : { condition1 : { type: 'contains', filter: 'searchstring1', }, operator: