News in versions: FastGrid 1.0, TreeGrid 17.0
FastGrid FastSheet ExamplesSamples DocumentationDoc Download Licensing Prices Buy Development
services
References References Contacts
TreeGrid Gantt chart SpreadSheet ExamplesSamples DocumentationDoc Download Licensing Prices Buy Contacts

6. Default rows and columns

Predefined values for more rows and columns

  • See Defaults documentation.
  • Default object can be row, column, cell, toolbar, toolbar cell or image.
    The default rows are defined in DefRows.
    The default columns are defined in DefCols.
    The default cells are defined in DefCells.
    The default toolbars are defined in DefToolbars.
    The default toolbar cells are defined in DefTools.
    The default images are defined in DefImages.
  • Default object predefines all object attributes that the object does not explitly set.
    Setting object attribute to empty string still overrides the default value. Setting attribute to null or undefined uses the default value.
  • The object refers to its default object by

    D

    attribute as the

    id

    of the default object.
    If the object is defined as number or string instead of object, it is the reference to default object. For example object "C1" is the same as { D:"C1" }.
  • Default row or column can be defined also by

    CD

    attribute that defined default object for children of the object.
  • If object has not set its default object by D or parent CD attribute it is automatically set to Row / Col / Cell / Toolbar / Tool / Image according to the object.
  • Predefined default rows and columns


    • Header

      - row or column in different color and background displaying column or row ids.
    • Index

      - row or column in different color and background displaying column or row indexes.
    • Panel

      - row or column prepared to display row / column icons. The icons must be defined explicitly, e.g. in LeftIcons.
    • Filter

      - row or column displaying filter operators and permits filtering rows / columns by its values.
    • Group

      - row or column created by grouping. It has Group attribute.
    • PivotGroup

      ,

      PivotData

      - row or column created by pivot.
  • API


    Default attributes can be got / set by methods

    GetDefAttr

    /

    SetDefAttr

    .
    The default object can be got / set by methods

    GetD

    /

    SetD

    .