You're viewing the legacy site. Visit cxjs.io/docs for the latest documentation. Legacy site. Visit cxjs.io/docs for new docs.

Documentation

Report Edit

Grouping in Lists

List control supports grouping.

  • B
  • Bell Hintz
    Phone: 152-367-8151
    City: South Krystinaborough
  • C
  • Camden Kirlin
    Phone: 447-679-7697
    City: Stanleyhaven
  • Connie Jacobson
    Phone: 754-300-0845
    City: Calebfurt
  • Chyna Stehr
    Phone: 861-337-3061
    City: Hoseafurt
  • D
  • Dexter Kirlin
    Phone: 729-983-9138
    City: Aaliyahberg
  • E
  • Ernestine Sporer
    Phone: 830-201-8219
    City: Hellerfort
  • Erin Greenfelder
    Phone: 230-659-6997
    City: East Tierra
  • F
  • Fletcher Wyman
    Phone: 929-013-2294
    City: Jakaylafurt
  • G
  • Gordon Carter
    Phone: 897-869-7666
    City: Devontemouth
  • Garnet Osinski
    Phone: 223-134-4826
    City: Cummingsbury
  • J
  • Jean Volkman
    Phone: 199-683-6842
    City: Rosariochester
  • K
  • Katharina Koch
    Phone: 685-720-9218
    City: West Rodrick
  • Kaelyn Lubowitz
    Phone: 461-703-9753
    City: New Waylon
  • L
  • Lucile Gaylord
    Phone: 982-552-7219
    City: Lillianbury
  • Lukas Schiller
    Phone: 724-849-4424
    City: Kiratown
  • P
  • Philip Hand
    Phone: 426-740-1674
    City: Earleneshire
  • R
  • Rudolph Durgan
    Phone: 145-822-5115
    City: Simonisberg
  • Rudolph Goyette
    Phone: 874-960-2405
    City: South Name
  • S
  • Sebastian Mosciski
    Phone: 544-292-2056
    City: Nikolausfurt
  • Susanna Bednar
    Phone: 054-912-0489
    City: Rosiestad
ControllerList
<List
    records-bind='$page.records'
    selection={{
        type: KeySelection,
        bind: '$page.selection'
    }}
    grouping={{
        key: {
            firstLetter: {expr: '{$record.fullName}[0]'}
        },
        aggregates: {
            count: {
                type: 'count',
                value: 1
            }
        },
        header: <div style="padding-top: 25px" >
            <strong text-bind="$group.firstLetter"/>
        </div>,
        footer: <strong text-tpl="{$group.count} item(s)"/>
    }}
>
    <strong text-bind="$record.fullName"></strong>
    <br/>
    Phone: <span text-bind="$record.phone" />
    <br/>
    City: <span text-bind="$record.city" />
</List>
Copied!Cx Fiddle