Version 1
CardLayout Interface ICardLayoutOptions GrapeCity DataViewsJS Interface

ICardLayoutOptions Interface

Defines available options of CardLayout strategy


  • ICardLayoutOptions


Optional allowAsyncRender

allowAsyncRender: boolean

Indicates whether to run asyncRender method in column

Optional cardHeight

cardHeight: number

Specifies default row height. Default value is 256

Optional cardWidth

cardWidth: number

Specifies default column width. Default value is a width of container

Optional defaultGroupingInfo

defaultGroupingInfo: Partial<IGroupDescriptor>

Specifies default settings of data grouping, settings in group descriptor has higher priority

Optional direction

direction: Direction

Specifies layout direction. Accepts 'horizontal' or 'vertical'

Optional groupStrategy

groupStrategy: IGroupStrategy

Specifies a group strategy object used to define the group layout strategy

Optional rightToLeft

rightToLeft: boolean

Indicates whether to lay out elements from right to left

Optional rowTemplate

rowTemplate: string

Specifies a template string that starts with '#'+templateID or a raw html string that represents the structure and layout of a row

Optional showScrollBar

showScrollBar: boolean

Specifies whether to show the scroll bar. Default value is true