ag-grid

Ag grid - Master/ detail - multi detail

三世轮回 提交于 2020-01-25 05:22:25
问题 For Ag grid Master/Detail, is there a way to add more than one detail? In the eg. it only eg with one detail only. 回答1: It sounds like you are asking how to have a single master with multiple detail grids. You will need to create your own detailCellRender class/object. In the template definition for your class, you create as many detail grids as you need. In the init method, you initialize the grid(s) and set their data. It is very important to remember the life-cycle of a cell renderer! The

Ag-grid multiline cell content

筅森魡賤 提交于 2020-01-24 14:31:44
问题 I tried to use this solution, but it does not work for me, Its correct resize column height, but text is not wrapeed. Ag-Grid - Row with multiline text var gridOptions = { columnDefs: columnDefs, rowSelection: 'multiple', enableColResize: true, enableSorting: true, enableFilter: true, enableRangeSelection: true, suppressRowClickSelection: true, animateRows: true, onModelUpdated: modelUpdated, debug: true, autoSizeColumns:true, getRowHeight: function(params) { // assuming 50 characters per

Ag-grid multiline cell content

微笑、不失礼 提交于 2020-01-24 14:30:29
问题 I tried to use this solution, but it does not work for me, Its correct resize column height, but text is not wrapeed. Ag-Grid - Row with multiline text var gridOptions = { columnDefs: columnDefs, rowSelection: 'multiple', enableColResize: true, enableSorting: true, enableFilter: true, enableRangeSelection: true, suppressRowClickSelection: true, animateRows: true, onModelUpdated: modelUpdated, debug: true, autoSizeColumns:true, getRowHeight: function(params) { // assuming 50 characters per

How to show dynamic values in ag-grid cell editor select

不问归期 提交于 2020-01-17 07:47:14
问题 I want to show dynamic drop down options for each row of ag-grid. Suppose for each row, department might be different and based on that I plan to filter list of subjects (available option for users to select in dropdown) Here is my code: this.gridOptions.columnDefs = { headerName: 'Department', field: 'financingCurrency', editable: false, suppressSorting: false, cellClass: 'grid-align' }, { headerName: 'Subject', field: 'subject', editable: true, cellEditor: 'select', filter: 'text',

How to show dynamic values in ag-grid cell editor select

半世苍凉 提交于 2020-01-17 07:46:08
问题 I want to show dynamic drop down options for each row of ag-grid. Suppose for each row, department might be different and based on that I plan to filter list of subjects (available option for users to select in dropdown) Here is my code: this.gridOptions.columnDefs = { headerName: 'Department', field: 'financingCurrency', editable: false, suppressSorting: false, cellClass: 'grid-align' }, { headerName: 'Subject', field: 'subject', editable: true, cellEditor: 'select', filter: 'text',

Angular Grid Ag-Grid, make Column Editable dynamically

半城伤御伤魂 提交于 2020-01-15 09:59:48
问题 Well, the title looks quite similar to other posts: Angular Grid ag-grid columnDefs Dynamically change AG-Grid: Make editable columns based on response from server but I'm going to ask a slightly different question. Now I have a bunch of columns stored in tableColumns variable. Each column has a editable property. For existing data, some columns are editable and some are not. This is achieved by below function. It is called when I define columnDefs. checkEditable(columnName: string){ var

How to hide sort order indicator in Ag-Grid?

浪子不回头ぞ 提交于 2020-01-15 08:17:33
问题 I'm using AgGrid and ag-grid-angular 15.0.0 All my columns are sortable. Ag-grid prints a number into each header, indicating the sort order. How to hide this? I'm using suppressMultiSort = true, as I wanna sort by a single column only. EDIT: If only 1 column is sortable, the numbers are not printed. But if more than 1 can be sorted, agGrid displays those numbers in the headers.. Furthermore, once I click any of the headers to trigger sorting, the numbers disappear.. Any help would be greatly

How to hide sort order indicator in Ag-Grid?

孤街浪徒 提交于 2020-01-15 08:17:22
问题 I'm using AgGrid and ag-grid-angular 15.0.0 All my columns are sortable. Ag-grid prints a number into each header, indicating the sort order. How to hide this? I'm using suppressMultiSort = true, as I wanna sort by a single column only. EDIT: If only 1 column is sortable, the numbers are not printed. But if more than 1 can be sorted, agGrid displays those numbers in the headers.. Furthermore, once I click any of the headers to trigger sorting, the numbers disappear.. Any help would be greatly

How to hide sort order indicator in Ag-Grid?

走远了吗. 提交于 2020-01-15 08:16:07
问题 I'm using AgGrid and ag-grid-angular 15.0.0 All my columns are sortable. Ag-grid prints a number into each header, indicating the sort order. How to hide this? I'm using suppressMultiSort = true, as I wanna sort by a single column only. EDIT: If only 1 column is sortable, the numbers are not printed. But if more than 1 can be sorted, agGrid displays those numbers in the headers.. Furthermore, once I click any of the headers to trigger sorting, the numbers disappear.. Any help would be greatly

Ag-grid external filter in angular 2, filter presents but grid not updating

老子叫甜甜 提交于 2020-01-15 03:50:24
问题 app.component.html <div class="inlineBlock"> <select [(ngModel)]="portId" id="portDropdownMenu" (change)="externalFilterChanged()"> <option *ngFor="#portId of portIds">{{portId}}</option> </select> </div> <div class="container"> <ag-grid-ng2 #agGrid [gridOptions]="gridOptions" [columnDefs]="myColumnDefs" [rowData]="myRowData" enableColResize rowSelection="multiple" enableSorting enableFilter [isExternalFilterPresent]="isExternalFilterPresent" [doesExternalFilterPass]="doesExternalFilterPass"