| Name | Type | Default |
|---|---|---|
| altRows | Boolean | false |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [altRows]="true">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| autoRowHeight | Boolean | true |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [autoRowHeight]="true">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| aggregatesHeight | Number | 34 |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [aggregatesHeight]="40">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| autoShowLoadElement | Boolean | true |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [autoShowLoadElement]="true">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| checkboxes | Boolean | false |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [checkboxes]="true">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| columnsHeight | Number | 30 |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [columnsHeight]="40">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| columns | Array<Any> | [] |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| columnGroups | Array<Any> | [] |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [columnGroups]="columnGroups">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| columnsResize | Boolean | false |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [columnsResize]="true">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| columnsReorder | Boolean | false |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [columnsReorder]="true">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| disabled | Boolean | false |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [disabled]="true">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| editable | Boolean | false |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [editable]="true">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| editSettings | TreeGridEditSettings | { saveOnPageChange: true, saveOnBlur: true, saveOnSelectionChange: true, cancelOnEsc: true, saveOnEnter: true, editSingleCell: false, editOnDoubleClick: true, editOnF2: true } |
|
interface TreeGridEditSettings {
saveOnPageChange?: Boolean; saveOnBlur?: Boolean; saveOnSelectionChange?: Boolean; cancelOnEsc?: Boolean; editSingleCell?: Boolean; editOnDoubleClick?: Boolean; editOnF2?: Boolean; } Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [editSettings]="editSettings">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| exportSettings | TreeGridExportSettings | {columnsHeader: true, hiddenColumns: false, serverURL: null, characterSet: null, collapsedRecords: false, recordsInView: true,fileName: "jqxTreeGrid"} |
|
interface TreeGridExportSettings {
columnsHeader?: Boolean; hiddenColumns?: Boolean; serverURL?: String | Any; characterSet?: String; collapsedRecords?: Boolean; recordsInView?: Boolean; fileName?: String; } Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [exportSettings]="exportSettings">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| enableHover | Boolean | true |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [enableHover]="true">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| enableBrowserSelection | Boolean | false |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [enableBrowserSelection]="true">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| filterable | Boolean | false |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [filterable]="true">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| filterHeight | Number | 30 |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [filterable]="true" [filterHeight]="40">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| filterMode | enum:TreeGridFilterMode | "default" |
|
enum TreeGridFilterMode {
default, simple, advanced } Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [filterable]="true" [filterMode]="'advanced'">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| height | String | Number | null |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [height]="200">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| hierarchicalCheckboxes | Boolean | false |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [checkboxes]="true" [hierarchicalCheckboxes]="true">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| icons | Boolean | false |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [icons]="true">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| incrementalSearch | Boolean | true |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [incrementalSearch]="true">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| localization | Any | default localization strings. |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [localization]="localization">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| pagerHeight | Number | 28 |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [pageable]="true" [pagerHeight]="35">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| pageSize | Number | 10 |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [pageable]="true" [pageSize]="5">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| pageSizeOptions | Array<Number | String> | ['5', '10', '20'] |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [pageable]="true" [pageSizeOptions]="['2', '3', '5']">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| pageable | Boolean | false |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [pageable]="true">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| pagerPosition | enum:TreeGridPagerPosition | "bottom" |
|
enum TreeGridPagerPosition {
top, bottom, both } Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [pageable]="true" [pagerPosition]="'top'">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| pagerMode | enum:TreeGridPagerMode | "default" |
|
enum TreeGridPagerMode {
default, advanced } Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [pageable]="true" [pagerMode]="'advanced'">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| pageSizeMode | enum:TreeGridPageSizeMode | "default" |
|
enum TreeGridPageSizeMode {
default, root } Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [pageable]="true" [pageSizeMode]="'root'">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| pagerButtonsCount | Number | 5 |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [pageable]="true" [pagerButtonsCount]="2">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| pagerRenderer | () => Any | null |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [pageable]="true" [pagerRenderer]="pagerRenderer">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| ready | () => Void | null |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [ready]="ready">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| rowDetails | Boolean | false |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [rowDetails]="true">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| rowDetailsRenderer | (key: Number, dataRow: Number) => Any | null |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [rowDetailsRenderer]="rowDetailsRenderer">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| renderToolbar | (toolBar?: Any) => Void | null |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [renderToolbar]="renderToolbar">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| renderStatusbar | (statusBar?: Any) => Void | null |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [renderStatusbar]="renderStatusbar">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| rendering | () => Void | null |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [rendering]="rendering">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| rendered | () => Void | null |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [rendered]="rendered">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| rtl | Boolean | false |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [rtl]="true">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| source | Any | null |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [source]="source">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| sortable | Boolean | false |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [sortable]="true">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| showAggregates | Boolean | false |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [showAggregates]="true">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| showSubAggregates | Boolean | false |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [showAggregates]="true" [showSubAggregates]="true">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| showToolbar | Boolean | false |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [showToolbar]="true">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| showStatusbar | Boolean | false |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [showStatusbar]="true">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| statusBarHeight | Number | 34 |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [statusBarHeight]="40">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| scrollBarSize | Number | 17 |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [scrollBarSize]="15">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| selectionMode | enum:TreeGridSelectionMode | "multipleRows" |
|
enum TreeGridSelectionMode {
multipleRows, singleRow, custom } Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [selectionMode]="'singleRow'">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| showHeader | Boolean | true |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [showHeader]="false">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| theme | String | '' |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [theme]="'energyblue'">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| toolbarHeight | Number | 34 |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns" [toolbarHeight]="40">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| width | String | Number | null |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| virtualModeCreateRecords | (expandedRecord?: Any, done?: Any) => Void | null |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
| virtualModeRecordCreating | (record?: Any) => Any | null |
|
Sets or gets the import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent {
employees: any[] = [
{ "EmployeeID": 1, "FirstName": "Nancy", "ReportsTo": 2, "LastName": "Davolio", "Title": "Sales Representative" },
{ "EmployeeID": 2, "FirstName": "Andrew", "ReportsTo": null, "LastName": "Fuller", "Title": "Vice President, Sales" },
{ "EmployeeID": 3, "FirstName": "Janet", "ReportsTo": 2, "LastName": "Leverling", "Title": "Sales Representative" },
{ "EmployeeID": 4, "FirstName": "Margaret", "ReportsTo": 2, "LastName": "Peacock", "Title": "Sales Representative" },
{ "EmployeeID": 5, "FirstName": "Steven", "ReportsTo": 2, "LastName": "Buchanan", "Title": "Sales Manager" }
];
source: any =
{
dataType: "json",
dataFields: [
{ name: 'EmployeeID', type: 'number' },
{ name: 'FirstName', type: 'string' },
{ name: 'ReportsTo', type: 'number' },
{ name: 'LastName', type: 'string' },
{ name: 'Title', type: 'string' }
],
hierarchy:
{
keyDataField: { name: 'EmployeeID' },
parentDataField: { name: 'ReportsTo' }
},
id: 'EmployeeID',
localData: this.employees
};
dataAdapter: any = new jqx.dataAdapter(this.source);
columns: any[] = [
{ text: 'FirstName', columnGroup: 'Name', dataField: 'FirstName', width: 200 },
{ text: 'LastName', columnGroup: 'Name', dataField: 'LastName', width: 200 },
{ text: 'Title', dataField: 'Title', width: 160 }
];
}
|
||
Events |
||
| bindingComplete | Event | |
|
This event is triggered when the jqxTreeGrid binding is completed. *Bind to that event before the jqxTreeGrid's initialization. Otherwise, if you are populating the widget from a local data source and bind to Code examples
Bind to the
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid(onBindingComplete)="BindingComplete($event)"
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent {
BindingComplete(event: any): void
{
// Do Something
}
|
||
| cellBeginEdit | Event | |
|
This is triggered when a cell edit begins. Note: To turn on cell editing, you should set the Code examples
Bind to the
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid(onCellBeginEdit)="CellBeginEdit($event)"
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent {
CellBeginEdit(event: any): void
{
// Do Something
}
|
||
| cellEndEdit | Event | |
|
This is triggered when a cell edit ends. Note: To turn on cell editing, you should set the Code examples
Bind to the
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid(onCellEndEdit)="CellEndEdit($event)"
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent {
CellEndEdit(event: any): void
{
// Do Something
}
|
||
| cellValueChanged | Event | |
|
This event is triggered when a cell value is changed. Code examples
Bind to the
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid(onCellValueChanged)="CellValueChanged($event)"
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent {
CellValueChanged(event: any): void
{
// Do Something
}
|
||
| columnResized | Event | |
|
This event is triggered when a column is resized. Code examples
Bind to the
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid(onColumnResized)="ColumnResized($event)"
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent {
ColumnResized(event: any): void
{
// Do Something
}
|
||
| columnReordered | Event | |
|
This event is triggered when the column's order is changed. Code examples
Bind to the
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid(onColumnReordered)="ColumnReordered($event)"
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent {
ColumnReordered(event: any): void
{
// Do Something
}
|
||
| filter | Event | |
|
This event is triggered when the jqxTreeGrid's rows filter is changed. Code examples
Bind to the
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid(onFilter)="Filter($event)"
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent {
Filter(event: any): void
{
// Do Something
}
|
||
| pageChanged | Event | |
|
This is triggered when the jqxTreeGrid's current page is changed. Code examples
Bind to the
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid(onPageChanged)="PageChanged($event)"
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent {
PageChanged(event: any): void
{
// Do Something
}
|
||
| pageSizeChanged | Event | |
|
This is triggered when the jqxTreeGrid's page size is changed. Code examples
Bind to the
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid(onPageSizeChanged)="PageSizeChanged($event)"
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent {
PageSizeChanged(event: any): void
{
// Do Something
}
|
||
| rowClick | Event | |
|
This is triggered when a row is clicked. Code examples
Bind to the
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid(onRowClick)="RowClick($event)"
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent {
RowClick(event: any): void
{
// Do Something
}
|
||
| rowDoubleClick | Event | |
|
This is triggered when a row is double-clicked. Code examples
Bind to the
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid(onRowDoubleClick)="RowDoubleClick($event)"
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent {
RowDoubleClick(event: any): void
{
// Do Something
}
|
||
| rowSelect | Event | |
|
This is triggered when a row is selected. Code examples
Bind to the
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid(onRowSelect)="RowSelect($event)"
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent {
RowSelect(event: any): void
{
// Do Something
}
|
||
| rowUnselect | Event | |
|
This is triggered when a row is unselected. Code examples
Bind to the
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid(onRowUnselect)="RowUnselect($event)"
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent {
RowUnselect(event: any): void
{
// Do Something
}
|
||
| rowBeginEdit | Event | |
|
This is triggered when a row edit begins. Code examples
Bind to the
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid(onRowBeginEdit)="RowBeginEdit($event)"
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent {
RowBeginEdit(event: any): void
{
// Do Something
}
|
||
| rowEndEdit | Event | |
|
This is triggered when a row edit ends. Code examples
Bind to the
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid(onRowEndEdit)="RowEndEdit($event)"
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent {
RowEndEdit(event: any): void
{
// Do Something
}
|
||
| rowExpand | Event | |
|
This is triggered when a row is expanded. Code examples
Bind to the
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid(onRowExpand)="RowExpand($event)"
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent {
RowExpand(event: any): void
{
// Do Something
}
|
||
| rowCollapse | Event | |
|
This is triggered when a row is collapsed. Code examples
Bind to the
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid(onRowCollapse)="RowCollapse($event)"
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent {
RowCollapse(event: any): void
{
// Do Something
}
|
||
| rowCheck | Event | |
|
This is triggered when a row is checked. Code examples
Bind to the
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid(onRowCheck)="RowCheck($event)"
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent {
RowCheck(event: any): void
{
// Do Something
}
|
||
| rowUncheck | Event | |
|
This is triggered when a row is unchecked. Code examples
Bind to the
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid(onRowUncheck)="RowUncheck($event)"
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent {
RowUncheck(event: any): void
{
// Do Something
}
|
||
| sort | Event | |
|
This event is triggered when the jqxTreeGrid sort order or sort column is changed. Code examples
Bind to the
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid(onSort)="Sort($event)"
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent {
Sort(event: any): void
{
// Do Something
}
|
||
Methods |
||
| Name | Return Type | Arguments |
| addRow | Void |
rowKey: String, rowData: Any, rowPosition: String, parent: String |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| addFilter | Void |
dataField: String, filerGroup: Any |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| applyFilters | Void | None |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| beginUpdate | Void | None |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| beginRowEdit | Void | rowKey: String |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| beginCellEdit | Void |
rowKey: String, dataField: String |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| clearSelection | Void | None |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| clearFilters | Void | None |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| clear | Void | None |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| checkRow | Void | rowKey: String |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| collapseRow | Void | rowKey: String |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| collapseAll | Void | None |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| destroy | Void | None |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| deleteRow | Void | rowKey: Array<String> | String |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| expandRow | Void | rowKey: Array<Number | String> | String | Number |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| expandAll | Void | None |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| endUpdate | Void | None |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| ensureRowVisible | Void | rowKey: String |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| endRowEdit | Void |
rowKey: String, cancelChanges: Boolean |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| endCellEdit | Void |
rowKey: String, dataField: String, cancelChanges: Boolean |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| exportData | Any | exportDataType: Any |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| focus | Void | None |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| getColumnProperty | Any |
dataField: String, propertyName: String |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| goToPage | Void | pageIndex: Number |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| goToPrevPage | Void | None |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| goToNextPage | Void | None |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| getSelection | Array<Any> | None |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| getKey | String | row: Any |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| getRow | TreeGridGetRow | rowKey: String |
|
interface TreeGridGetRow {
type?: String; checked?: Boolean; expanded?: Boolean; icon?: String; leaf?: Boolean; level?: Number; parent?: Any; records?: Array<Any>; selected?: Boolean; uid?: String | Number; } import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| getRows | Array<TreeGridGetRow> | None |
|
interface TreeGridGetRow {
type?: String; checked?: Boolean; expanded?: Boolean; icon?: String; leaf?: Boolean; level?: Number; parent?: Any; records?: Array<Any>; selected?: Boolean; uid?: String | Number; } import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| getCheckedRows | Array<TreeGridGetRow> | None |
|
interface TreeGridGetRow {
type?: String; checked?: Boolean; expanded?: Boolean; icon?: String; leaf?: Boolean; level?: Number; parent?: Any; records?: Array<Any>; selected?: Boolean; uid?: String | Number; } import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| getView | Array<TreeGridGetRow> | None |
|
interface TreeGridGetRow {
type?: String; checked?: Boolean; expanded?: Boolean; icon?: String; leaf?: Boolean; level?: Number; parent?: Any; records?: Array<Any>; selected?: Boolean; uid?: String | Number; } import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| getCellValue | Any |
rowKey: String, dataField: String |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| hideColumn | Void | dataField: String |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| isBindingCompleted | Boolean | None |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| lockRow | Void | rowKey: String | Number | Array<Number | String> |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| refresh | Void | None |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| render | Void | None |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| removeFilter | Void | dataField: String |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| scrollOffset | TreeGridScrollOffset |
top: Number, left: Number |
|
interface TreeGridScrollOffset {
top?: Number; left?: Number; } import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| setColumnProperty | Void |
dataField: String, propertyName: String, propertyValue: Any |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| showColumn | Void | dataField: String |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| selectRow | Void | rowId: String | Number | Array<Number | String> |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| setCellValue | Void |
rowId: String, dataField: String, cellValue: Any |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| sortBy | Void |
dataField: String | Number, sortOrder: String |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| updating | Boolean | None |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| updateBoundData | Void | None |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| unselectRow | Void | rowId: String | Number | Array<Number | String> |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| uncheckRow | Void | rowId: String |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| updateRow | Void |
rowId: Number | String, data: Any |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||
| unlockRow | Void | rowId: String | Number | Array<Number | String> |
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTreeGrid #myTreeGrid
[width]="850" [source]="dataAdapter" [columns]="columns">
</jqxTreeGrid>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTreeGrid') myTreeGrid: jqxTreeGridComponent; |
||