jQWidgets Forums
Forum Replies Created
-
Author
-
May 21, 2019 at 4:59 pm in reply to: jqxPivotGrid custom rendering jqxPivotGrid custom rendering #105333
I’m following this demo:
https://www.jqwidgets.com/angular/angular-pivotgrid/angular-pivotgrid-custom_rendering.htmbut how can I add the treeStyleRows at the first column?
May 17, 2019 at 3:50 am in reply to: jqxPivotGrid custom rendering jqxPivotGrid custom rendering #105272No, it doesn’t work. I’m talking about custom
cellsRenderer
here.Does sortBy only work with valueItems? Can rows be sorted by row text?
Here’s my code:
console.log(this.pivotGrid1.getPivotRows().items[0].text)
The error message is: Property ‘text’ does not exist on type ‘PivotGridItem’.
I checked the source and the interface PivotGridItem does not have the property ‘text’. Do I need to do a type conversion?April 18, 2019 at 6:26 pm in reply to: jqxPivotGrid expand rows and columns jqxPivotGrid expand rows and columns #104841yes, it works if I move the code to setTimeout. But why?
Also, the pivotGrid has 1422 rows. Whenthis.pivotGrid1.getPivotRows().items[0].expand()
is called, the whole expandable column disappears. It comes back until I click any cell in the grid. Is it a bug?April 18, 2019 at 12:09 am in reply to: jqxPivotGrid expand rows and columns jqxPivotGrid expand rows and columns #104826Please ignore the reply above and see this one.
not working. still got the same error: Cannot read property ‘expand’ of undefined.
whenthis.pivotGrid1.getPivotRows().items[0].expand()
is called,this.PivotGrid1.getPivotRows.items
doesn’t return any items.April 17, 2019 at 10:48 pm in reply to: jqxPivotGrid expand rows and columns jqxPivotGrid expand rows and columns #104825not working. still got the same error: Cannot read property ‘expand’ of undefined.
whenthis.pivotGrid1.getPivotRows().items[0].expand()
is called,this.PivotGrid1
is not available yet.April 15, 2019 at 4:57 pm in reply to: jqxPivotGrid not work with bootstrap 4.3.1 jqxPivotGrid not work with bootstrap 4.3.1 #104783This doesn’t work. which selector should I apply for this style?
my component html:
<jqxPivotGrid #pivotGrid1 [width]="auto" [height]="600" [source]="pivotDataSource" [treeStyleRows]="true" [autoResize]="false" [multipleSelectionEnabled]="true"> </jqxPivotGrid>
my component css:
#pivotGrid1 { box-sizing: content-box !important; }
April 15, 2019 at 4:45 pm in reply to: jqxPivotGrid expand rows and columns jqxPivotGrid expand rows and columns #104781It seems like that
this.pivotGrid1.getPivotRows().items[0].expand()
runs beforethis.createPivotDataSource(data)
April 15, 2019 at 4:25 pm in reply to: jqxPivotGrid expand rows and columns jqxPivotGrid expand rows and columns #104780I got this error message: ERROR TypeError: Cannot read property ‘expand’ of undefined
Here’s my whole code:
import { Component, ViewChild, OnInit, AfterViewInit } from ‘@angular/core’;
import { jqxPivotGridComponent } from ‘jqwidgets-scripts/jqwidgets-ts/angular_jqxpivotgrid’;
import { jqxButtonComponent } from ‘jqwidgets-scripts/jqwidgets-ts/angular_jqxbuttons’;
import { ScenarioDetail } from ‘../models/scenarioDetail.model’;
import { ScenarioDetailService } from “../scenario-detail.service”;@Component({
selector: ‘app-scenario-detail’,
templateUrl: ‘./scenario-detail.component.html’,
styleUrls: [‘./scenario-detail.component.css’],
})
export class ScenarioDetailComponent implements OnInit, AfterViewInit {
@ViewChild(‘pivotGrid1’) pivotGrid1: jqxPivotGridComponent;scenarioDetails: ScenarioDetail[];
gridData;
pivotDataSource;
source;
dataAdapter;constructor(private scenariodetailService: ScenarioDetailService) {
this.createPivotDataSource(null);
}ngAfterViewInit(): void {
this.scenariodetailService.getDefaultScenario()
.subscribe(data => {
this.createPivotDataSource(data);
}, err => {
console.log(err);
});this.pivotGrid1.getPivotRows().items[0].expand();
this.pivotGrid1.getPivotColumns().items[0].expand();
} -
AuthorPosts