diff --git a/src/app/data/hierarchical-data-extended.ts b/src/app/data/hierarchical-data-extended.ts new file mode 100644 index 000000000..2354cd528 --- /dev/null +++ b/src/app/data/hierarchical-data-extended.ts @@ -0,0 +1,464 @@ +// tslint:disable:object-literal-sort-keys +/* eslint-disable */ +export const HIERARCHICAL_DATA_EXTENDED = [ + { + ID: "ALFKI", + CompanyName: "Alfreds Futterkiste", + ContactName: "Maria Anders", + ContactTitle: "Sales Representative", + Address: "Obere Str. 57", + City: "Berlin", + Region: "Berlin", + PostalCode: "12209", + Country: "Germany", + Phone: "030-0074321", + Fax: "030-0076545", + ChildCompanies: [ + { + ID: "ANATR", + CompanyName: "Ana Trujillo Emparedados y helados", + ContactName: "Ana Trujillo", + ContactTitle: "Owner", + Address: "Avda. de la ConstituciA3n 2222", + City: "México D.F.", + Region: "México D.F.", + PostalCode: "05021", + Country: "Mexico", + Phone: "(5) 555-4729", + Fax: "(5) 555-3745", + ChildCompanies: [ + { + ID: "AROUT", + CompanyName: "Around the Horn", + ContactName: "Thomas Hardy", + ContactTitle: "Sales Representative", + Address: "120 Hanover Sq.", + City: "London", + Region: "London", + PostalCode: "10000", + Country: "UK", + Phone: "(171) 555-7788", + Fax: "(171) 555-6750" + }, + { + ID: "BERGS", + CompanyName: "Berglunds snabbköp", + ContactName: "Christina Berglund", + ContactTitle: "Order Administrator", + Address: "Berguvsvägen 8", + City: "Luleå", + Region: "Luleå", + PostalCode: "25000", + Country: "Sweden", + Phone: "0921-12 34 65", + Fax: "0921-12 34 67" + }, + { + ID: "BLAUS", + CompanyName: "Blauer See Delikatessen", + ContactName: "Hanna Moos", + ContactTitle: "Sales Representative", + Address: "Forsterstr. 57", + City: "Mannheim", + Region: "Mannheim", + PostalCode: "68306", + Country: "Germany", + Phone: "0621-08460", + Fax: "0621-08924" + }, + { + ID: "BLONP", + CompanyName: "Blondesddsl père et fils", + ContactName: "Frédérique Citeaux", + ContactTitle: "Marketing Manager", + Address: "24, place Kléber", + City: "Strasbourg", + Region: "Strasbourg", + PostalCode: "67000", + Country: "France", + Phone: "88.60.15.31", + Fax: "88.60.15.32" + }, + { + ID: "BOLID", + CompanyName: "Bólido Comidas preparadas", + ContactName: "Martín Sommer", + ContactTitle: "Owner", + Address: "C/ Araquil, 67", + City: "Madrid", + Region: "Madrid", + PostalCode: "28023", + Country: "Spain", + Phone: "(91) 555 22 82", + Fax: "(91) 555 91 99" + }, + { + ID: "BONAP", + CompanyName: "Bon app", + ContactName: "Laurence Lebihan", + ContactTitle: "Owner", + Address: "12, rue des Bouchers", + City: "Marseille", + Region: "Marseille", + PostalCode: "13008", + Country: "France", + Phone: "91.24.45.40", + Fax: "91.24.45.41" + }, + { + ID: "BOTTM", + CompanyName: "Bottom-Dollar Markets", + ContactName: "Elizabeth Lincoln", + ContactTitle: "Accounting Manager", + Address: "23 Tsawassen Blvd.", + City: "Tsawassen", + Region: "BC", + PostalCode: "13000", + Country: "Canada", + Phone: "(604) 555-4729", + Fax: "(604) 555-3745" + }, + { + ID: "BSBEV", + CompanyName: "Beverages", + ContactName: "Victoria Ashworth", + ContactTitle: "Sales Representative", + Address: "Fauntleroy Circus", + City: "London", + Region: "London", + PostalCode: "37000", + Country: "UK", + Phone: "(171) 555-1212", + Fax: "011-4988261" + } + ] + }, + { + ID: "ANTON", + CompanyName: "Antonio Moreno Taquería", + ContactName: "Antonio Moreno", + ContactTitle: "Owner", + Address: "Mataderos 2312", + City: "México D.F.", + Region: "México D.F.", + PostalCode: "05023", + Country: "Mexico", + Phone: "(5) 555-3932", + Fax: "011-4988261", + ChildCompanies: [ + { + ID: "CACTU", + CompanyName: "Cactus Comidas para llevar", + ContactName: "Patricio Simpson", + ContactTitle: "Sales Agent", + Address: "Cerrito 333", + City: "Buenos Aires", + Region: "Buenos Aires", + PostalCode: "1010", + Country: "Argentina", + Phone: "(1) 135-5555", + Fax: "(1) 135-4892" + }, + { + ID: "CENTC", + CompanyName: "Centro comercial Moctezuma", + ContactName: "Francisco Chang", + ContactTitle: "Marketing Manager", + Address: "Sierras de Granada 9993", + City: "México D.F.", + Region: "México D.F.", + PostalCode: "05022", + Country: "Mexico", + Phone: "(5) 555-3392", + Fax: "(5) 555-7293" + }, + { + ID: "CHOPS", + CompanyName: "Chop-suey Chinese", + ContactName: "Yang Wang", + ContactTitle: "Owner", + Address: "Hauptstr. 29", + City: "Bern", + Region: "Bern", + PostalCode: "3012", + Country: "Switzerland", + Phone: "0452-076545", + Fax: "011-4988261" + } + ] + } + ] + }, + { + ID: "COMMI", + CompanyName: "Comércio Mineiro", + ContactName: "Pedro Afonso", + ContactTitle: "Sales Associate", + Address: "Av. dos Lusíadas, 23", + City: "Sao Paulo", + Region: "SP", + PostalCode: "16000", + Country: "Brazil", + Phone: "(11) 555-7647", + Fax: "089-0877451", + ChildCompanies: [ + { + ID: "CONSH", + CompanyName: "Consolidated Holdings", + ContactName: "Elizabeth Brown", + ContactTitle: "Sales Representative", + Address: "Berkeley Gardens 12 Brewery", + City: "London", + Region: "London", + PostalCode: "23000", + Country: "UK", + Phone: "(171) 555-2282", + Fax: "(171) 555-9199", + ChildCompanies: [ + { + ID: "EASTC", + CompanyName: "Eastern Connection", + ContactName: "Ann Devon", + ContactTitle: "Sales Agent", + Address: "35 King George", + City: "London", + Region: "London", + PostalCode: "42000", + Country: "UK", + Phone: "(171) 555-0297", + Fax: "(171) 555-3373" + }, + { + ID: "ERNSH", + CompanyName: "Ernst Handel", + ContactName: "Roland Mendel", + ContactTitle: "Sales Manager", + Address: "Kirchgasse 6", + City: "Graz", + Region: "Graz", + PostalCode: "8010", + Country: "Austria", + Phone: "7675-3425", + Fax: "7675-3426" + } + ] + }, + { + ID: "DRACD", + CompanyName: "Drachenblut Delikatessen", + ContactName: "Sven Ottlieb", + ContactTitle: "Order Administrator", + Address: "Walserweg 21", + City: "Aachen", + Region: "Aachen", + PostalCode: "52066", + Country: "Germany", + Phone: "0241-039123", + Fax: "0241-059428" + }, + { + ID: "DUMON", + CompanyName: "Du monde entier", + ContactName: "Janine Labrune", + ContactTitle: "Owner", + Address: "67, rue des Cinquante Otages", + City: "Nantes", + Region: "Nantes", + PostalCode: "44000", + Country: "France", + Phone: "40.67.88.88", + Fax: "40.67.89.89", + ChildCompanies: [ + { + ID: "FAMIA", + CompanyName: "Familia Arquibaldo", + ContactName: "Aria Cruz", + ContactTitle: "Marketing Assistant", + Address: "Rua Orós, 92", + City: "Sao Paulo", + Region: "SP", + PostalCode: "12000", + Country: "Brazil", + Phone: "(11) 555-9857", + Fax: "089-0877451" + } + ] + } + ] + }, + { + ID: "FISSA", + CompanyName: "FISSA Fabrica Inter. Salchichas S.A.", + ContactName: "Diego Roel", + ContactTitle: "Accounting Manager", + Address: "C/ Moralzarzal, 86", + City: "Madrid", + Region: "Madrid", + PostalCode: "28034", + Country: "Spain", + Phone: "(91) 555 94 44", + Fax: "(91) 555 55 93", + ChildCompanies: [ + { + ID: "FOLIG", + CompanyName: "Folies gourmandes", + ContactName: "Martine Rancé", + ContactTitle: "Assistant Sales Agent", + Address: "184, chaussée de Tournai", + City: "Lille", + Region: "Lille", + PostalCode: "59000", + Country: "France", + Phone: "20.16.10.16", + Fax: "20.16.10.17" + }, + { + ID: "FOLKO", + CompanyName: "Folk och fä HB", + ContactName: "Maria Larsson", + ContactTitle: "Owner", + Address: "Åkergatan 24", + City: "Bräcke", + Region: "Bräcke", + PostalCode: "19000", + Country: "Sweden", + Phone: "0695-34 67 21", + Fax: "089-0877451" + }, + { + ID: "FRANK", + CompanyName: "Frankenversand", + ContactName: "Peter Franken", + ContactTitle: "Marketing Manager", + Address: "Berliner Platz 43", + City: "München", + Region: "München", + PostalCode: "80805", + Country: "Germany", + Phone: "089-0877310", + Fax: "089-0877451" + }, + { + ID: "FRANR", + CompanyName: "France restauration", + ContactName: "Carine Schmitt", + ContactTitle: "Marketing Manager", + Address: "54, rue Royale", + City: "Nantes", + Region: "Nantes", + PostalCode: "44000", + Country: "France", + Phone: "40.32.21.21", + Fax: "40.32.21.20" + } + ] + }, + { + ID: "FRANS", + CompanyName: "Franchi S.p.A.", + ContactName: "Paolo Accorti", + ContactTitle: "Sales Representative", + Address: "Via Monte Bianco 34", + City: "Torino", + Region: "Torino", + PostalCode: "10100", + Country: "Italy", + Phone: "011-4988260", + Fax: "011-4988261", + ChildCompanies: [ + { + ID: "ITSR1", + CompanyName: "Italia Sourcing", + ContactName: "Luca Rossi", + ContactTitle: "Sales Representative", + Address: "Via Roma 1", + City: "Rome", + Region: "Lazio", + PostalCode: "00100", + Country: "Italy", + Phone: "06-555-0101", + Fax: "06-555-0102" + }, + { + ID: "ITSR2", + CompanyName: "Roma Exports", + ContactName: "Chiara Conti", + ContactTitle: "Sales Representative", + Address: "Piazza Navona 5", + City: "Rome", + Region: "Lazio", + PostalCode: "00186", + Country: "Italy", + Phone: "06-555-0201", + Fax: "06-555-0202" + }, + { + ID: "ITOWN1", + CompanyName: "Milano Retail", + ContactName: "Marco Neri", + ContactTitle: "Owner", + Address: "Corso Buenos Aires 12", + City: "Milan", + Region: "Lombardia", + PostalCode: "20100", + Country: "Italy", + Phone: "02-555-0101", + Fax: "02-555-0102" + } + ] + }, + { + ID: "FRNS2", + CompanyName: "Franchi Logistics", + ContactName: "Giulia Bianchi", + ContactTitle: "Sales Representative", + Address: "Via Po 12", + City: "Torino", + Region: "Torino", + PostalCode: "10121", + Country: "Italy", + Phone: "011-4988262", + Fax: "011-4988263", + ChildCompanies: [ + { + ID: "ITSR3", + CompanyName: "Torino Foods", + ContactName: "Alessia Greco", + ContactTitle: "Sales Representative", + Address: "Via Garibaldi 3", + City: "Torino", + Region: "Piemonte", + PostalCode: "10121", + Country: "Italy", + Phone: "011-555-0001", + Fax: "011-555-0002" + }, + { + ID: "ITSR4", + CompanyName: "Torino Traders", + ContactName: "Fabio De Luca", + ContactTitle: "Sales Representative", + Address: "Via Roma 25", + City: "Torino", + Region: "Piemonte", + PostalCode: "10123", + Country: "Italy", + Phone: "011-555-0003", + Fax: "011-555-0004" + }, + { + ID: "ITSA1", + CompanyName: "Liguria Supplies", + ContactName: "Gianni Marino", + ContactTitle: "Sales Agent", + Address: "Via XX Settembre 15", + City: "Genova", + Region: "Liguria", + PostalCode: "16121", + Country: "Italy", + Phone: "010-555-0101", + Fax: "010-555-0102" + } + ] + } +]; diff --git a/src/app/hierarchical-grid/hierarchical-grid-cell-merge-custom/hierarchical-grid-cell-merge-custom.component.ts b/src/app/hierarchical-grid/hierarchical-grid-cell-merge-custom/hierarchical-grid-cell-merge-custom.component.ts index 7050e7be5..97a9ab6fa 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-cell-merge-custom/hierarchical-grid-cell-merge-custom.component.ts +++ b/src/app/hierarchical-grid/hierarchical-grid-cell-merge-custom/hierarchical-grid-cell-merge-custom.component.ts @@ -1,6 +1,6 @@ import { Component } from '@angular/core'; import { IgxHierarchicalGridComponent, IgxColumnComponent, IgxRowIslandComponent, SortingDirection, GridCellMergeMode, IgxGridToolbarComponent, IgxSelectComponent, IgxSelectItemComponent, IgxLabelDirective, DefaultMergeStrategy } from 'igniteui-angular'; -import { HIERARCHICAL_DATA } from '../../data/hierarchical-data'; +import { HIERARCHICAL_DATA_EXTENDED } from '../../data/hierarchical-data-extended'; import { IgxPreventDocumentScrollDirective } from '../../directives/prevent-scroll.directive'; import { FormsModule } from '@angular/forms'; @@ -23,7 +23,7 @@ import { FormsModule } from '@angular/forms'; export class HGridCellMergeCustomComponent { - public localData = HIERARCHICAL_DATA; + public localData = HIERARCHICAL_DATA_EXTENDED; public cellMergeMode: GridCellMergeMode = 'always'; public perCountryMergeStrategy = new PerCountryMergeStrategy(); public sortExpr = [